import Button from 'react-bootstrap/lib/Button' import MaterialIcon from '@/shared/components/material-icon' import Tooltip from '@/shared/components/tooltip' type PDFToolbarButtonProps = { tooltipId: string icon: string label: string onClick: () => void shortcut?: string disabled?: boolean } export default function PDFToolbarButton({ tooltipId, disabled, label, icon, onClick, shortcut, }: PDFToolbarButtonProps) { return (
{label}
{shortcut &&
{shortcut}
} } overlayProps={{ placement: 'bottom' }} >
) }