mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
feat: add folders (#1711)
This commit is contained in:
5
packages/lib/utils/format-folder-count.ts
Normal file
5
packages/lib/utils/format-folder-count.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export function formatFolderCount(count: number, singular: string, plural?: string): string {
|
||||
const itemLabel = count === 1 ? singular : plural || `${singular}s`;
|
||||
|
||||
return `${count} ${itemLabel}`;
|
||||
}
|
||||
Reference in New Issue
Block a user