mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-14 08:11:29 -06:00
pluralize, improve SessionData typing
This commit is contained in:
@@ -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"}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user