import { Link } from "inferno-router"; import { CommunityAggregates, CommunityView, SiteAggregates, } from "lemmy-js-client"; import { i18n } from "../../i18next"; import { numToSI } from "../../utils"; interface BadgesProps { counts: CommunityAggregates | SiteAggregates; online: number; community_view?: CommunityView; } const isCommunityAggregates = ( counts: CommunityAggregates | SiteAggregates ): counts is CommunityAggregates => { return "subscribers" in counts; }; export const Badges = ({ counts, community_view, online }: BadgesProps) => { return ( ); };