import { useTranslation } from 'react-i18next' import { Button } from 'react-bootstrap' import Tooltip from '../../../shared/components/tooltip' import Icon from '../../../shared/components/icon' import { useMemo } from 'react' import { useLayoutContext } from '../../../shared/context/layout-context' function PdfExpandButton() { const { pdfLayout, switchLayout, detachRole } = useLayoutContext() const { t } = useTranslation() const text = useMemo(() => { return pdfLayout === 'sideBySide' ? t('full_screen') : t('split_screen') }, [pdfLayout, t]) if (detachRole) { return null } return ( ) } export default PdfExpandButton