import { Button, Modal, Space, Table } from "antd"; import { useState } from "react"; import StaffViewModal from "~/pages/Container/EnterpriseInfo/PersonnelInfo/StaffViewModal"; import { fetchOrgPersonnelDetail } from "~/api/qualFiling/personnelHelper"; import OrgPersonnelSelectModal from "./OrgPersonnelSelectModal"; export default function PersonnelStep({ personnelList = [], disabled, onAdd, onRemove, }) { const [selectOpen, setSelectOpen] = useState(false); const [viewId, setViewId] = useState(""); const existingIds = personnelList.map((item) => String(item.sourcePersonnelId || "")); return ( <>