import { KeyboardKey } from '@standardnotes/ui-services' import { WebApplication } from '@/Application/Application' import { SNNote } from '@standardnotes/snjs' import { FunctionComponent, useCallback, useRef, useState } from 'react' import Icon from '@/Components/Icon/Icon' import ChangeEditorMenu from '@/Components/ChangeEditor/ChangeEditorMenu' import Popover from '../Popover/Popover' type ChangeEditorOptionProps = { application: WebApplication note: SNNote className: string iconClassName: string } const ChangeEditorOption: FunctionComponent = ({ application, note, className, iconClassName, }) => { const [isOpen, setIsOpen] = useState(false) const menuContainerRef = useRef(null) const buttonRef = useRef(null) const toggleMenu = useCallback(async () => { setIsOpen((isOpen) => !isOpen) }, []) return (
{ setIsOpen(false) }} />
) } export default ChangeEditorOption