"use client" import { useState } from 'react'; import { Button } from '@/app/_components/ui/button'; import { AlertTriangle, Bell, ShieldAlert, Radio, RadioTower, Shield } from 'lucide-react'; import { cn } from '@/app/_lib/utils'; import { Badge } from '@/app/_components/ui/badge'; import { IIncidentLog } from '@/app/_utils/types/ews'; interface PanicButtonDemoProps { onTriggerAlert: (priority: 'high' | 'medium' | 'low') => void; onResolveAllAlerts: () => void; activeIncidents: IIncidentLog[]; className?: string; } export default function PanicButtonDemo({ onTriggerAlert, onResolveAllAlerts, activeIncidents, className }: PanicButtonDemoProps) { const [isTriggering, setIsTriggering] = useState(false); const handleTriggerPanic = (priority: 'high' | 'medium' | 'low') => { setIsTriggering(true); onTriggerAlert(priority); // Reset animation setTimeout(() => { setIsTriggering(false); }, 1000); }; return (

EWS Panic Button Demo

{activeIncidents.length > 0 && ( {activeIncidents.length} Active )}
{activeIncidents.length > 0 && ( )}

Simulates a mobile app panic button activation in the Jember area.

); }