"use client"; import { PopComponentRegistry } from "../../PopComponentRegistry"; import { PopSearchComponent } from "./PopSearchComponent"; import { PopSearchConfigPanel } from "./PopSearchConfig"; import type { PopSearchConfig } from "./types"; const defaultConfig: PopSearchConfig = { inputType: "text", fieldName: "", placeholder: "검색어 입력", debounceMs: 500, triggerOnEnter: true, labelPosition: "top", labelText: "", labelVisible: true, }; function PopSearchPreviewComponent({ config, label }: { config?: PopSearchConfig; label?: string }) { const cfg = config || defaultConfig; const displayLabel = label || cfg.fieldName || "검색"; return (