import React from "react"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Label } from "@/components/ui/label"; import { Input } from "@/components/ui/input"; import { Textarea } from "@/components/ui/textarea"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { Switch } from "@/components/ui/switch"; import { ComponentData } from "@/types/screen"; import { ColorPickerWithTransparent } from "../common/ColorPickerWithTransparent"; interface CardConfigPanelProps { component: ComponentData; onUpdateProperty: (path: string, value: any) => void; } export const CardConfigPanel: React.FC = ({ component, onUpdateProperty }) => { const config = component.componentConfig || {}; const handleConfigChange = (key: string, value: any) => { onUpdateProperty(`componentConfig.${key}`, value); }; return ( 카드 설정 {/* 카드 제목 */}
handleConfigChange("title", e.target.value)} />
{/* 카드 내용 */}