2025-03-04 12:53:19 +00:00
|
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
import { clsx, type ClassValue } from "clsx";
|
2025-03-08 13:03:32 +00:00
|
|
|
import { EditorLanguage } from "@prisma/client";
|
2025-03-04 13:28:47 +00:00
|
|
|
import LanguageServerConfig from "@/config/language-server";
|
2025-02-19 01:05:45 +00:00
|
|
|
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
|
|
return twMerge(clsx(inputs))
|
|
|
|
}
|
2025-03-04 12:53:19 +00:00
|
|
|
|
2025-03-14 03:04:12 +00:00
|
|
|
export function getPath(lang: EditorLanguage) {
|
2025-03-04 13:28:47 +00:00
|
|
|
const config = LanguageServerConfig[lang];
|
2025-03-04 12:53:19 +00:00
|
|
|
return `file:///${config.lang.fileName}${config.lang.fileExtension}`;
|
|
|
|
}
|