pluralize, improve SessionData typing

This commit is contained in:
2024-12-22 09:53:49 -06:00
parent 9f67603bbe
commit 51e05474ec
2 changed files with 16 additions and 7 deletions

View File

@@ -5,3 +5,7 @@ export { type ClassValue };
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function plural(text: string, count: number) {
return `${text}${count === 1 ? "" : "s"}`;
}