import { useEditorContext } from '../../../shared/context/editor-context' import { useTranslation } from 'react-i18next' import PropTypes from 'prop-types' export default function SymbolPaletteCloseButton() { const { toggleSymbolPalette } = useEditorContext() const { t } = useTranslation() const handleClick = () => { toggleSymbolPalette() window.dispatchEvent(new CustomEvent('editor:focus')) } return (