import { useTranslation } from 'react-i18next' import Icon from '../../../shared/components/icon' import MaterialIcon from '@/shared/components/material-icon' import OLButton from '@/features/ui/components/ol/ol-button' import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher' import { useLayoutContext } from '../../../shared/context/layout-context' function SwitchToEditorButton() { const { pdfLayout, setView, detachRole } = useLayoutContext() const { t } = useTranslation() if (detachRole) { return null } if (pdfLayout === 'sideBySide') { return null } function handleClick() { setView('editor') } return ( } bs5={} /> {t('switch_to_editor')} ) } export default SwitchToEditorButton