mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
14 lines
446 B
TypeScript
14 lines
446 B
TypeScript
import { twMerge } from "tailwind-merge";
|
|
import { clsx, type ClassValue } from "clsx";
|
|
import { EditorLanguage } from "@prisma/client";
|
|
import LanguageServerConfig from "@/config/language-server";
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs))
|
|
}
|
|
|
|
export function getPath(lang: EditorLanguage) {
|
|
const config = LanguageServerConfig[lang];
|
|
return `file:///${config.lang.fileName}${config.lang.fileExtension}`;
|
|
}
|