import { For, Show } from 'solid-js' import { useLocalize } from '../../../context/localize' import { Author, Topic } from '../../../graphql/schema/core.gen' import { Userpic } from '../../Author/Userpic' import styles from './Subscribers.module.scss' type Props = { followers: Author[] following?: Array } export const Subscribers = (props: Props) => { const { t } = useLocalize() return (
0}> {(f) => }
{t('SubscriberWithCount', { count: props.followers.length ?? 0, })}
0}> {(f) => { if ('name' in f) { return } if ('title' in f) { return } return null }}
{t('SubscriptionWithCount', { count: props?.following.length ?? 0, })}
) }