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 './FollowingCounters.module.scss' type Props = { followers?: Author[] followersAmount?: number following?: Array followingAmount?: number } export const FollowingCounters = (props: Props) => { const { t } = useLocalize() return ( <> 0}>
{(f) => }
{t('some followers', { count: props.followersAmount || props.followers.length || 0, })}
0}>
{(f) => { if ('name' in f) { return ( ) } if ('title' in f) { return ( ) } return null }}
{t('some followings', { count: props.followingAmount || props.following?.length || 0, })}
) }