import { Collapse, Row, Col, Button } from "@douyinfe/semi-ui"; import { IconPlus } from "@douyinfe/semi-icons"; import { useSelect, useTables } from "../../../hooks"; import SearchBar from "./SearchBar"; import Empty from "../Empty"; import TableInfo from "./TableInfo"; export default function TablesTab() { const { tables, addTable } = useTables(); const { selectedElement, setSelectedElement } = useSelect(); return ( <> {tables.length === 0 ? ( ) : ( setSelectedElement((prev) => ({ ...prev, id: parseInt(k), open: true, })) } accordion > {tables.map((t) => ( ))} )} ); }