"use client";
import React, { useState } from "react";
import CtModal from "@/components/CtModal";
import BizGroupContent from './BizGroupContent';
import { CtTreeNode } from "@/components/CtTree";

interface ManageBizGroupModalProps {
  treeData: CtTreeNode[];
  isOpen: boolean;
  closeModal: () => void;
}

export default function ManageBizGroupModal({ treeData, isOpen, closeModal }: ManageBizGroupModalProps) {
  return (
    // <div className="rounded-2xl border border-gray-200 bg-white dark:border-gray-800 dark:bg-white/[0.03]">
      <CtModal
        title={"사업자정보 관리"}
        description={"사업자 관련 정보 및 계층도를 관리합니다."}
        isOpen={isOpen}
        closeModal={closeModal}
        className="max-w-[1280px] p-6 lg:p-10"
      >
        <BizGroupContent preloadTreeData={treeData} />
      </CtModal>
    // </div>
  );
};
