import { useState } from "react"; import { Row, Col, Button, Collapse } from "@douyinfe/semi-ui"; import { IconPlus } from "@douyinfe/semi-icons"; import { useNotes } from "../../../hooks"; import Empty from "../Empty"; import SearchBar from "./SearchBar"; import NoteInfo from "./NoteInfo"; export default function NotesTab() { const { notes, addNote } = useNotes(); const [activeKey, setActiveKey] = useState(""); return ( <> {notes.length <= 0 ? ( ) : ( setActiveKey(k)} accordion > {notes.map((n, i) => ( ))} )} ); }