import React from "react"; import { Tooltip, ActionIcon, } from "@mantine/core"; import UndoIcon from "@mui/icons-material/Undo"; import RedoIcon from "@mui/icons-material/Redo"; import ContentCutIcon from "@mui/icons-material/ContentCut"; import RotateLeftIcon from "@mui/icons-material/RotateLeft"; import RotateRightIcon from "@mui/icons-material/RotateRight"; interface PageEditorControlsProps { // Close/Reset functions onClosePdf: () => void; // Undo/Redo onUndo: () => void; onRedo: () => void; canUndo: boolean; canRedo: boolean; // Page operations onRotate: (direction: 'left' | 'right') => void; onDelete: () => void; onSplit: () => void; // Export functions onExportSelected: () => void; onExportAll: () => void; exportLoading: boolean; // Selection state selectionMode: boolean; selectedPages: number[]; } const PageEditorControls = ({ onUndo, onRedo, canUndo, canRedo, onRotate, onSplit, selectionMode, selectedPages }: PageEditorControlsProps) => { return (