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[] followersAmount?: number following?: Array followingAmount?: number } export const Subscribers = (props: Props) => { const {t} = useLocalize() return ( <> 0}>
{(f) => }
{t('SubscriberWithCount', { count: props.followersAmount || props.followers.length || 0, })}
0}>
{(f) => { if ('name' in f) { return } if ('title' in f) { return } return null }}
{t('SubscriptionWithCount', { count: props.followingAmount || props.following?.length || 0, })}
) }