"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"; interface SectionPaperConfigPanelProps { config: any; onChange: (config: any) => void; } export function SectionPaperConfigPanel({ config, onChange, }: SectionPaperConfigPanelProps) { 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 Paper μ„€μ •

배경색 기반의 λ―Έλ‹ˆλ©€ν•œ κ·Έλ£Ήν™” μ»¨ν…Œμ΄λ„ˆ

{/* 배경색 */}
{/* μ»€μŠ€ν…€ 색상 */} {config.backgroundColor === "custom" && (
handleChange("customColor", e.target.value)} className="h-9" />
)} {/* νŒ¨λ”© */}
{/* λ‘₯κ·Ό λͺ¨μ„œλ¦¬ */}
{/* 그림자 */}
{/* ν…Œλ‘λ¦¬ ν‘œμ‹œ */}
handleChange("showBorder", checked)} />
); }