mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-08-04 23:00:05 +02:00

* Improve landmarks for the Project Dasbhboard * Improve landmarks for the IDE page * Improve landmarks for the new redesigned IDE page * Sort locales * Fix typo OlButtonToolbar -> OLButtonToolbar * Update project navbar translation * Update labels * Redundant main landmark * Fix failing test * Descriptive name for the rails tab * Header should not be in a button * Update translation to Account and help * Update translation to Project categories and tags * Add explanations * Show landmark for the survey widget when it's rendered * Suggestions for nav stretch/scroll/borders * Source format --------- Co-authored-by: Antoine Clausse <antoine.clausse@overleaf.com> GitOrigin-RevId: d05a738e782d2edb229529aadf92b9004dfd973a
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
import { memo } from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import OLButtonToolbar from '@/features/ui/components/ol/ol-button-toolbar'
|
|
import PdfCompileButton from '@/features/pdf-preview/components/pdf-compile-button'
|
|
import PdfHybridDownloadButton from '@/features/pdf-preview/components/pdf-hybrid-download-button'
|
|
import { DetachedSynctexControl } from '@/features/pdf-preview/components/detach-synctex-control'
|
|
import SwitchToEditorButton from '@/features/pdf-preview/components/switch-to-editor-button'
|
|
|
|
function PdfPreviewHybridToolbar() {
|
|
const { t } = useTranslation()
|
|
// TODO: add detached pdf logic
|
|
return (
|
|
<OLButtonToolbar
|
|
className="toolbar toolbar-pdf toolbar-pdf-hybrid"
|
|
aria-label={t('pdf')}
|
|
>
|
|
<div className="toolbar-pdf-left">
|
|
<PdfCompileButton />
|
|
<PdfHybridDownloadButton />
|
|
</div>
|
|
<div className="toolbar-pdf-right">
|
|
<div className="toolbar-pdf-controls" id="toolbar-pdf-controls" />
|
|
<SwitchToEditorButton />
|
|
<DetachedSynctexControl />
|
|
{/* TODO: should we have code check? */}
|
|
</div>
|
|
</OLButtonToolbar>
|
|
)
|
|
}
|
|
|
|
export default memo(PdfPreviewHybridToolbar)
|