import { useStore } from '@nanostores/solid' import type { Author, Shout } from '../../graphql/types.gen' import { session } from '../../stores/auth' import { useAuthorsStore } from '../../stores/zine/authors' import { t } from '../../utils/intl' import Icon from '../Nav/Icon' type FeedSidebarProps = { authors: Author[] } export const FeedSidebar = (props: FeedSidebarProps) => { // const seen = useStore(seenstore) const auth = useStore(session) // const topics = useTopicsStore() const { getSortedAuthors: authors } = useAuthorsStore() // const articlesByTopics = useStore(abt) // const topicIsSeen = (topic: string) => { // let allSeen = false // articlesByTopics()[topic].forEach((s: Shout) => (allSeen = !seen()[s.slug])) // return allSeen // } // // const authorIsSeen = (slug: string) => { // return !!seen()[slug] // } return ( <>

{t('Feed settings')}

) }