import { useRef } from 'react' import PdfPageNumberControl from './pdf-page-number-control' import PdfZoomButtons from './pdf-zoom-buttons' import { useTranslation } from 'react-i18next' import MaterialIcon from '@/shared/components/material-icon' import useDropdown from '@/shared/hooks/use-dropdown' import OLTooltip from '@/features/ui/components/ol/ol-tooltip' import OLButton from '@/features/ui/components/ol/ol-button' import OLOverlay from '@/features/ui/components/ol/ol-overlay' import OLPopover from '@/features/ui/components/ol/ol-popover' type PdfViewerControlsMenuButtonProps = { setZoom: (zoom: string) => void setPage: (page: number) => void page: number totalPages: number } export default function PdfViewerControlsMenuButton({ setZoom, setPage, page, totalPages, }: PdfViewerControlsMenuButtonProps) { const { t } = useTranslation() const { open: popoverOpen, onToggle: togglePopover, ref: popoverRef, } = useDropdown() const targetRef = useRef(null) return ( <> togglePopover(false)} >
) }