code-share/src/lib/utils.ts

11 lines
279 B
TypeScript
Raw Normal View History

2024-02-20 06:52:39 +00:00
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
2024-02-18 21:14:41 +07:00
export function cn(...inputs: ClassValue[]) {
2024-02-20 06:52:39 +00:00
return twMerge(clsx(inputs));
}
export function getFileExt(filename: string) {
return filename.substring(filename.lastIndexOf(".") + 1);
2024-02-18 21:14:41 +07:00
}