"use client"; import React from "react"; import { Label } from "@/components/ui/label"; import { Input } from "@/components/ui/input"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { ComponentData } from "@/types/screen"; interface StatsCardConfigPanelProps { component: ComponentData; onUpdateProperty: (path: string, value: any) => void; } export const StatsCardConfigPanel: React.FC = ({ component, onUpdateProperty }) => { const config = component.componentConfig || {}; return (
onUpdateProperty("componentConfig.title", e.target.value)} placeholder="통계 제목을 입력하세요" />
onUpdateProperty("componentConfig.value", e.target.value)} placeholder="통계 값을 입력하세요" />
onUpdateProperty("componentConfig.change", e.target.value)} placeholder="변화량을 입력하세요 (예: +12.5%)" />
onUpdateProperty("componentConfig.description", e.target.value)} placeholder="설명을 입력하세요" />
); };