import { Input } from '@/components/ui/input'; import { Button } from '@/components/ui/button'; import { useTranslation } from 'react-i18next'; const PRIORITY_OPTIONS = [ { value: '', labelKey: 'common.labels.all', label: 'All' }, { value: '0', labelKey: 'app.journalControls.emergency', label: 'Emergency' }, { value: '1', labelKey: 'app.journalControls.alert', label: 'Alert' }, { value: '2', labelKey: 'app.journalControls.critical', label: 'Critical' }, { value: '3', labelKey: 'app.journalControls.error', label: 'Error' }, { value: '4', labelKey: 'common.labels.warning', label: 'Warning' }, { value: '5', labelKey: 'app.journalControls.notice', label: 'Notice' }, { value: '6', labelKey: 'common.labels.info', label: 'Info' }, { value: '7', labelKey: 'app.journalControls.debug', label: 'Debug' }, ]; export function JournalControls({ unit = '', onUnitChange, unitLabel = 'Service/Unit', unitPlaceholder = 'All services', quickUnits = [], showQuickUnits = true, lineCount, onLineCountChange, lineCountOptions = [50, 100, 200, 500], priority, onPriorityChange, showPriority = true, loading = false, onLoad, loadLabel = 'Load Logs', }) { const { t } = useTranslation(); return (