"use client"; import React from "react"; import { Label } from "@/components/ui/label"; import { Input } from "@/components/ui/input"; import { Switch } from "@/components/ui/switch"; import { ComponentData } from "@/types/screen"; interface ProgressBarConfigPanelProps { component: ComponentData; onUpdateProperty: (path: string, value: any) => void; } export const ProgressBarConfigPanel: React.FC = ({ component, onUpdateProperty }) => { const config = component.componentConfig || {}; return (
onUpdateProperty("componentConfig.label", e.target.value)} placeholder="진행률 라벨을 입력하세요" />
onUpdateProperty("componentConfig.value", parseInt(e.target.value) || 0)} placeholder="현재 값" min="0" />
onUpdateProperty("componentConfig.max", parseInt(e.target.value) || 100)} placeholder="최대 값" min="1" />
onUpdateProperty("componentConfig.color", e.target.value)} />
onUpdateProperty("componentConfig.showPercentage", checked)} />
onUpdateProperty("componentConfig.showValue", checked)} />
); };