mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00:00
6 lines
202 B
TypeScript
6 lines
202 B
TypeScript
export function formatFolderCount(count: number, singular: string, plural?: string): string {
|
|
const itemLabel = count === 1 ? singular : plural || `${singular}s`;
|
|
|
|
return `${count} ${itemLabel}`;
|
|
}
|