'use client'; import { Bell, BellRing, AlertCircle } from 'lucide-react'; import type { DemoUrgency } from '../types'; interface UrgencyOption { urgency: DemoUrgency; label: string; description: string; icon: any; } interface UrgencySectionProps { selectedUrgency: DemoUrgency; onSelectUrgency: (urgency: DemoUrgency) => void; } export const urgencyOptions: UrgencyOption[] = [ { urgency: 'silent', label: 'Silent', description: 'Only shows in notification center', icon: Bell, }, { urgency: 'toast', label: 'Toast', description: 'Shows a temporary popup', icon: BellRing, }, { urgency: 'modal', label: 'Modal', description: 'Shows blocking modal (may require response)', icon: AlertCircle, }, ]; export function UrgencySection({ selectedUrgency, onSelectUrgency }: UrgencySectionProps) { return (
Urgency Level
{urgencyOptions.map((option) => { const Icon = option.icon; const isSelected = selectedUrgency === option.urgency; return ( ); })}

{urgencyOptions.find(o => o.urgency === selectedUrgency)?.description}

); }