import { ArrowUp, ArrowDown } from 'lucide-react'; import { Label } from '@/components/ui/label'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; import { Button } from '@/components/ui/button'; import type { SortConfig, SortField } from '@/types/moderation'; interface QueueSortControlsProps { sortConfig: SortConfig; onSortChange: (config: SortConfig) => void; isMobile?: boolean; variant?: 'inline' | 'standalone'; showLabel?: boolean; } const getSortFieldLabel = (field: SortField): string => { switch (field) { case 'created_at': return 'Date Created'; case 'submission_type': return 'Type'; case 'status': return 'Status'; case 'escalated': return 'Escalated'; default: return field; } }; export const QueueSortControls = ({ sortConfig, onSortChange, isMobile = false, variant = 'inline', showLabel = true }: QueueSortControlsProps) => { const handleFieldChange = (field: SortField) => { onSortChange({ ...sortConfig, field }); }; const handleDirectionToggle = () => { onSortChange({ ...sortConfig, direction: sortConfig.direction === 'asc' ? 'desc' : 'asc' }); }; return (
{showLabel && ( )}
); };