File size: 916 Bytes
1d9a971
 
5131419
50cf5bb
3a1152b
bc666cc
 
1d9a971
bc666cc
5131419
 
 
 
 
3a1152b
 
 
 
 
5131419
 
3a1152b
50cf5bb
 
 
 
 
 
 
 
 
 
 
 
3a1152b
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
// @ts-expect-error idk
import { oneDark, oneLight } from "react-syntax-highlighter/dist/esm/styles/prism";
import { v4 as uuidv4 } from 'uuid';

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs));
}

export const customOneDark = {
  ...oneDark,
  'code[class*="language-"]': {
    ...oneDark['code[class*="language-"]'],
    background: 'transparent',
  },
  'pre[class*="language-"]': {
    ...oneDark['pre[class*="language-"]'],
    background: 'transparent',
  },
};

export const customOneLight = {
  ...oneLight,
  'code[class*="language-"]': {
    ...oneLight['code[class*="language-"]'],
    background: 'transparent',
  },
  'pre[class*="language-"]': {
    ...oneLight['pre[class*="language-"]'],
    background: 'transparent',
  },
};


export function generateUUID() {
  return uuidv4();
}