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 { useAuthStore } from '../../stores/auth' import { follow, unfollow } from '../../stores/zine/common' import { t } from '../../utils/intl' type Props = { topic: Topic } export const FullTopic = (props: Props) => { const { session } = useAuthStore() const subscribed = createMemo(() => session()?.news?.topics?.includes(props.topic?.slug)) return (

#{props.topic.title}

{props.topic.body}

{t('Write about the topic')}
{props.topic.title}
) }