import { ChevronLeft, ChevronRight, Download, Minus, Plus } from 'lucide-react'
import { m } from '@/ui/paraglide/messages.js'
export interface PdfControlBarProps {
currentPage: number
totalPages: number
onPageChange: (newPage: number) => void
zoom: number
onZoomIn: () => void
onZoomOut: () => void
onFit: () => void
onDownload: () => void
canDownload: boolean
/** When false, hides the download affordance. Defaults to true. */
allowDownload?: boolean
}
export function PdfControlBar({
currentPage,
totalPages,
onPageChange,
zoom,
onZoomIn,
onZoomOut,
onFit,
onDownload,
canDownload,
allowDownload = true,
}: PdfControlBarProps) {
return (
{/* Page Navigation */}
{m.page_of_pages({ current: currentPage, total: totalPages || 1 })}
{currentPage}/{totalPages || 1}
{/* Zoom & Action Controls */}
{Math.round(zoom * 100)}%
{allowDownload && (
)}
)
}