1 import { c, msgid } from 'ttag';
3 import type { MaybeNull } from '@proton/pass/types';
5 export const getOccurrenceString = (count: number) => c('Info').ngettext(msgid`${count} time`, `${count} times`, count);
6 export const getViewCountString = (count: number, maxReads: MaybeNull<number>) =>
8 ? c('Info').t`${count}/${maxReads} views`
9 : c('Info').ngettext(msgid`${count} view`, `${count} views`, count);