mirror of
https://github.com/Xevion/the-office.git
synced 2026-01-31 06:26:18 -06:00
15 lines
322 B
TypeScript
15 lines
322 B
TypeScript
import { clsx } from 'clsx';
|
|
import type { ClassValue } from 'clsx';
|
|
import { twMerge } from 'tailwind-merge';
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
export function slugify(text: string) {
|
|
return text
|
|
.toLowerCase()
|
|
.replace(/ /g, '-')
|
|
.replace(/[^\w-]+/g, '');
|
|
}
|