mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-29 17:19:37 +07:00
11 lines
279 B
TypeScript
11 lines
279 B
TypeScript
import { type ClassValue, clsx } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
export function getFileExt(filename: string) {
|
|
return filename.substring(filename.lastIndexOf(".") + 1);
|
|
}
|