mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 23:42:24 +00:00
12 lines
386 B
TypeScript
12 lines
386 B
TypeScript
import { twMerge } from "tailwind-merge";
|
|
import { clsx, type ClassValue } from "clsx";
|
|
import { EditorLanguageConfig } from "@prisma/client";
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs))
|
|
}
|
|
|
|
export function getPath(editorLanguageConfig: EditorLanguageConfig) {
|
|
return `file:///${editorLanguageConfig.fileName}${editorLanguageConfig.fileExtension}`;
|
|
}
|