import React, { useContext } from "react"; import { Empty, Row, Col, Button, // Input, // Popover, // Toast, } from "@douyinfe/semi-ui"; import { IllustrationNoContent, IllustrationNoContentDark, } from "@douyinfe/semi-illustrations"; import { IconPlus } from "@douyinfe/semi-icons"; import { NoteContext } from "../pages/editor"; export default function NotesOverview(props) { const { notes, setNotes } = useContext(NoteContext); return (
{notes.length <= 0 ? (
} darkModeImage={ } title="No text notes" description="Add notes cuz why not!" />
) : (
{notes.map((n, i) => (
{n.title}
))}
)}
); }