import { useState } from "react"; import { Editor } from "@tiptap/react"; import { usePopper } from "react-popper"; import { List } from "lucide-react"; // components import { ContentBrowser } from "./content-browser"; // types import { IMarking } from ".."; type Props = { editor: Editor; markings: IMarking[]; sidePeekVisible: boolean; setSidePeekVisible: (sidePeekState: boolean) => void; }; export const SummaryPopover: React.FC = (props) => { const { editor, markings, sidePeekVisible, setSidePeekVisible } = props; const [referenceElement, setReferenceElement] = useState(null); const [popperElement, setPopperElement] = useState(null); const { styles: summaryPopoverStyles, attributes: summaryPopoverAttributes } = usePopper( referenceElement, popperElement, { placement: "bottom-start", } ); return (
{!sidePeekVisible && (
)}
); };