import { TextInput, Button, Text, Flex, Switch } from '@mantine/core'; import { useTranslation } from 'react-i18next'; import LocalIcon from '../../shared/LocalIcon'; import { Tooltip } from '../../shared/Tooltip'; import { usePageSelectionTips } from '../../tooltips/usePageSelectionTips'; import classes from './BulkSelectionPanel.module.css'; interface PageSelectionInputProps { csvInput: string; setCsvInput: (value: string) => void; onUpdatePagesFromCSV: (override?: string) => void; onClear: () => void; advancedOpened?: boolean; onToggleAdvanced?: (v: boolean) => void; } const PageSelectionInput = ({ csvInput, setCsvInput, onUpdatePagesFromCSV, onClear, advancedOpened, onToggleAdvanced, }: PageSelectionInputProps) => { const { t } = useTranslation(); const pageSelectionTips = usePageSelectionTips(); return (