import { createMemo } from 'solid-js' import { Show } from 'solid-js/web' import type { Topic } from '../../graphql/types.gen' import { FollowingEntity } from '../../graphql/types.gen' import './Full.scss' import { session } from '../../stores/auth' import { useStore } from '@nanostores/solid' import { follow, unfollow } from '../../stores/zine/common' import { t } from '../../utils/intl' type Props = { topic: Topic } export const FullTopic = (props: Props) => { const auth = useStore(session) const subscribed = createMemo(() => auth()?.info?.topics?.includes(props.topic?.slug)) return (