(value: number, locale: string, singular: string, plural: string)
| 37 | } |
| 38 | |
| 39 | export function formatCount(value: number, locale: string, singular: string, plural: string) { |
| 40 | const unit = value === 1 ? singular : plural |
| 41 | return `${formatNumber(value, locale)} ${unit}` |
| 42 | } |
| 43 | |
| 44 | interface AnchorProps extends JSX.HTMLAttributes<HTMLDivElement> { |
| 45 | id: string |
no test coverage detected