"use client"; import React from "react"; import { createComponentDefinition } from "../../utils/createComponentDefinition"; import { ComponentCategory } from "@/types/component"; import type { WebType } from "@/types/screen"; import { RadioBasicWrapper } from "./RadioBasicComponent"; import { RadioBasicConfigPanel } from "./RadioBasicConfigPanel"; import { RadioBasicConfig } from "./types"; /** * RadioBasic 컴포넌트 정의 * radio-basic 컴포넌트입니다 */ export const RadioBasicDefinition = createComponentDefinition({ id: "radio-basic", name: "라디오 버튼", nameEng: "RadioBasic Component", description: "단일 옵션 선택을 위한 라디오 버튼 그룹 컴포넌트", category: ComponentCategory.FORM, webType: "radio", component: RadioBasicWrapper, defaultConfig: { placeholder: "입력하세요", }, defaultSize: { width: 150, height: 80 }, // 40 * 2 (2개 옵션) configPanel: RadioBasicConfigPanel, icon: "Edit", tags: [], version: "1.0.0", author: "개발팀", documentation: "https://docs.example.com/components/radio-basic", }); // 타입 내보내기 export type { RadioBasicConfig } from "./types"; // 컴포넌트 내보내기 export { RadioBasicComponent } from "./RadioBasicComponent"; export { RadioBasicRenderer } from "./RadioBasicRenderer";