"use client";

import { ComponentCategory } from "@/types/component";
import { createComponentDefinition } from "../../utils/createComponentDefinition";
import { BomTreeComponent } from "./BomTreeComponent";

export const V2BomTreeDefinition = createComponentDefinition({
  id: "v2-bom-tree",
  name: "BOM 트리 뷰",
  nameEng: "BOM Tree View",
  description: "BOM 구성을 계층 트리 형태로 표시하는 컴포넌트",
  category: ComponentCategory.V2,
  webType: "text",
  component: BomTreeComponent,
  defaultConfig: {
    detailTable: "bom_detail",
    foreignKey: "bom_id",
    parentKey: "parent_detail_id",
  },
  defaultSize: { width: 900, height: 600 },
  icon: "GitBranch",
  tags: ["BOM", "트리", "계층", "제조", "생산"],
  version: "1.0.0",
  author: "개발팀",
});

export default V2BomTreeDefinition;
