/** * 색상 선택 패널 — 기존 스와치 팔레트 + 하단 고급 색상 팔레트 */ import React from 'react'; import { COLOR_PALETTE } from '../utils/plotColorUtils'; import AdvancedColorPicker from './AdvancedColorPicker'; export interface ColorPickerPanelProps { hex6: string; onHexChange: (hex6: string) => void; /** false면 스와치 그리드만 숨김 (고급 팔레트만) */ showQuickPalette?: boolean; className?: string; } const ColorPickerPanel: React.FC = ({ hex6, onHexChange, showQuickPalette = true, className = '', }) => (
{showQuickPalette && (
{COLOR_PALETTE.map(c => (
)}
); export default ColorPickerPanel;