import { Shield, Unlock } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from '@/components/ui/alert-dialog'; interface SuperuserQueueControlsProps { activeLocksCount: number; onClearAllLocks: () => Promise; isLoading: boolean; } export const SuperuserQueueControls = ({ activeLocksCount, onClearAllLocks, isLoading }: SuperuserQueueControlsProps) => { if (activeLocksCount === 0) return null; return ( Superuser Queue Management
{activeLocksCount} active lock{activeLocksCount !== 1 ? 's' : ''} in queue Clear All Active Locks? This will release {activeLocksCount} active lock{activeLocksCount !== 1 ? 's' : ''}, making all submissions available for claiming again. This action will be logged in the audit trail.

Use this for:
  • Clearing stale locks after system issues
  • Resetting queue after team changes
  • Emergency queue management
Cancel Clear All Locks
); };