'use client'; import React from 'react'; import { cn, withRef } from '@udecode/cn'; import { EraserIcon } from 'lucide-react'; import { type TColor, ColorDropdownMenuItems, } from './color-dropdown-menu-items'; import { ColorCustom } from './colors-custom'; import { DropdownMenuGroup, DropdownMenuItem } from './dropdown-menu'; export const ColorPickerContent = withRef< 'div', { colors: TColor[]; customColors: TColor[]; clearColor: () => void; updateColor: (color: string) => void; updateCustomColor: (color: string) => void; color?: string; } >( ( { className, clearColor, color, colors, customColors, updateColor, updateCustomColor, ...props }, ref, ) => { return (