"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 ChartConfigPanelProps { component: ComponentData; onUpdateProperty: (path: string, value: any) => void; } export const ChartConfigPanel: React.FC = ({ component, onUpdateProperty }) => { const config = component.componentConfig || {}; return (
onUpdateProperty("componentConfig.title", e.target.value)} placeholder="차트 제목을 입력하세요" />
onUpdateProperty("componentConfig.dataSource", e.target.value)} placeholder="데이터 소스 URL 또는 API 엔드포인트" />
onUpdateProperty("componentConfig.xAxisLabel", e.target.value)} placeholder="X축 라벨" />
onUpdateProperty("componentConfig.yAxisLabel", e.target.value)} placeholder="Y축 라벨" />
); };