import PDFToolbarButton from './pdf-toolbar-button' import { useTranslation } from 'react-i18next' import OLButtonGroup from '@/features/ui/components/ol/ol-button-group' const isMac = /Mac/.test(window.navigator?.platform) type PdfZoomButtonsProps = { setZoom: (zoom: string) => void } function PdfZoomButtons({ setZoom }: PdfZoomButtonsProps) { const { t } = useTranslation() const zoomInShortcut = isMac ? '⌘+' : 'Ctrl++' const zoomOutShortcut = isMac ? '⌘-' : 'Ctrl+-' return ( setZoom('zoom-out')} shortcut={zoomOutShortcut} /> setZoom('zoom-in')} shortcut={zoomInShortcut} /> ) } export default PdfZoomButtons