File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { Dispatch , RefObject , SetStateAction } from 'react' ;
2
2
import { Color } from '@/hooks/useColorPalette' ;
3
3
import { getLightModeColor , getDarkModeColor } from '@/common/common' ;
4
+ import { cn } from '@/lib/utils' ;
5
+ import { type ClassValue } from 'clsx' ;
4
6
5
7
export const ColorPalette = ( {
6
8
colorPaletteRef,
7
9
bgColors,
8
10
setBgColor,
11
+ className,
9
12
} : {
10
13
colorPaletteRef : RefObject < HTMLDivElement > ;
11
14
bgColors : Color [ ] ;
12
15
setBgColor : Dispatch < SetStateAction < Color > > ;
16
+ className ?: ClassValue ;
13
17
} ) => {
14
18
return (
15
19
< div
16
- className = "fixed inset-0 max-w-full min-h-fit px-2 py-4 md:py-0 bg-zinc-900 flex items-center justify-center flex-wrap gap-2 dark:rounded-xl z-50"
20
+ className = { cn (
21
+ 'fixed inset-0 max-w-full min-h-fit md:h-12 px-2 py-4 md:py-0 bg-zinc-900 flex items-center justify-center flex-wrap gap-2 dark:rounded-xl z-50' ,
22
+ className
23
+ ) }
17
24
ref = { colorPaletteRef }
18
25
>
19
26
{ bgColors . map ( color => (
You can’t perform that action at this time.
0 commit comments