import { For } from 'solid-js' import type { Stat, TopicStat } from '../../graphql/types.gen' import { locale } from '../../stores/ui' import { plural } from '../../utils' import { t } from '../../utils/intl' import styles from './Stat.module.scss' interface StatMetricsProps { fields?: string[] stat: Stat | TopicStat compact?: boolean } const pseudonames = { // topics: 'topics' # amount of topics for community💥 followed: 'followers', followers: 'followers', reacted: 'involvings', reactions: 'involvings', commented: 'discoussions', comments: 'discussions', shouts: 'posts', authors: 'authors' } const nos = (s) => s.slice(0, -1) export const StatMetrics = (props: StatMetricsProps) => { return (