import { useState } from "react"; import { Editor } from "@tiptap/react"; import { usePopper } from "react-popper"; import { List } from "lucide-react"; // components import { ContentBrowser } from "src/ui/components/content-browser"; // types import { IMarking } from "src/types/editor-types"; 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 && (
)}
); };