import React from 'react'; import { Paper, Group, TextInput, Button, Text } from '@mantine/core'; interface BulkSelectionPanelProps { csvInput: string; setCsvInput: (value: string) => void; selectedPages: number[]; onUpdatePagesFromCSV: () => void; } const BulkSelectionPanel = ({ csvInput, setCsvInput, selectedPages, onUpdatePagesFromCSV, }: BulkSelectionPanelProps) => { return ( setCsvInput(e.target.value)} placeholder="1,3,5-10" label="Page Selection" onBlur={onUpdatePagesFromCSV} onKeyDown={(e) => e.key === 'Enter' && onUpdatePagesFromCSV()} style={{ flex: 1 }} /> {selectedPages.length > 0 && ( Selected: {selectedPages.length} pages )} ); }; export default BulkSelectionPanel;