import { memo } from 'react' import { ButtonToolbar } from 'react-bootstrap' import { useTranslation } from 'react-i18next' import { useLayoutContext } from '../../../shared/context/layout-context' import PdfCompileButton from './pdf-compile-button' import PdfExpandButton from './pdf-expand-button' import PdfHybridLogsButton from './pdf-hybrid-logs-button' import PdfHybridDownloadButton from './pdf-hybrid-download-button' import PdfHybridCodeCheckButton from './pdf-hybrid-code-check-button' import PdfOrphanRefreshButton from './pdf-orphan-refresh-button' function PdfPreviewHybridToolbar() { const { detachMode } = useLayoutContext() return ( {detachMode === 'orphan' ? ( ) : ( )} ) } function PdfPreviewHybridToolbarInner() { return ( <>
{!window.showPdfDetach && }
) } function PdfPreviewHybridToolbarOrphanInner() { const { t } = useTranslation() return ( <>
{t('tab_no_longer_connected')}
) } export default memo(PdfPreviewHybridToolbar)