diff --git a/frontend/src/components/pageEditor/PageBreakSettingsModal.tsx b/frontend/src/components/pageEditor/PageBreakSettingsModal.tsx deleted file mode 100644 index c5c682a26..000000000 --- a/frontend/src/components/pageEditor/PageBreakSettingsModal.tsx +++ /dev/null @@ -1,86 +0,0 @@ -import React, { useState } from 'react'; -import { Modal, Button, Select, Radio, Group, Stack } from '@mantine/core'; - -export type PageSize = 'A4' | 'Letter' | 'Legal' | 'A3' | 'A5'; -export type PageOrientation = 'portrait' | 'landscape'; - -export interface PageBreakSettings { - size: PageSize; - orientation: PageOrientation; -} - -interface PageBreakSettingsModalProps { - opened: boolean; - onClose: () => void; - onConfirm: (settings: PageBreakSettings) => void; - selectedPageCount: number; -} - -const PAGE_SIZES: { value: PageSize; label: string; dimensions: string }[] = [ - { value: 'A4', label: 'A4', dimensions: '210 × 297 mm' }, - { value: 'Letter', label: 'Letter', dimensions: '8.5 × 11 in' }, - { value: 'Legal', label: 'Legal', dimensions: '8.5 × 14 in' }, - { value: 'A3', label: 'A3', dimensions: '297 × 420 mm' }, - { value: 'A5', label: 'A5', dimensions: '148 × 210 mm' }, -]; - -export const PageBreakSettingsModal: React.FC = ({ - opened, - onClose, - onConfirm, - selectedPageCount, -}) => { - const [size, setSize] = useState('A4'); - const [orientation, setOrientation] = useState('portrait'); - - const handleConfirm = () => { - onConfirm({ size, orientation }); - onClose(); - }; - - return ( - 1 ? 's' : ''}`} - centered - size="md" - > - -