"use client"; import React from "react"; import { Label } from "@/components/ui/label"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; import { Input } from "@/components/ui/input"; import { Checkbox } from "@/components/ui/checkbox"; import { Textarea } from "@/components/ui/textarea"; interface SectionCardConfigPanelProps { config: any; onChange: (config: any) => void; } export function SectionCardConfigPanel({ config, onChange, }: SectionCardConfigPanelProps) { const handleChange = (key: string, value: any) => { const newConfig = { ...config, [key]: value, }; onChange(newConfig); // ๐ŸŽฏ ์‹ค์‹œ๊ฐ„ ์—…๋ฐ์ดํŠธ๋ฅผ ์œ„ํ•œ ์ด๋ฒคํŠธ ๋ฐœ์ƒ if (typeof window !== "undefined") { window.dispatchEvent(new CustomEvent("componentConfigChanged", { detail: { config: newConfig } })); } }; return (

Section Card ์„ค์ •

์ œ๋ชฉ๊ณผ ํ…Œ๋‘๋ฆฌ๊ฐ€ ์žˆ๋Š” ๋ช…ํ™•ํ•œ ๊ทธ๋ฃนํ™” ์ปจํ…Œ์ด๋„ˆ

{/* ํ—ค๋” ํ‘œ์‹œ */}
handleChange("showHeader", checked)} />
{/* ์ œ๋ชฉ */} {config.showHeader !== false && (
handleChange("title", e.target.value)} placeholder="์„น์…˜ ์ œ๋ชฉ ์ž…๋ ฅ" className="h-9 text-xs" />
)} {/* ์„ค๋ช… */} {config.showHeader !== false && (