import { Bell, Info, AlertTriangle, XCircle, CheckCircle2, Zap, Settings2 } from 'lucide-react'; import { useState } from 'react'; const categories = [ { id: 'success', label: 'Success', icon: CheckCircle2, color: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30 hover:bg-emerald-500/25' }, { id: 'error', label: 'Error', icon: XCircle, color: 'bg-red-500/15 text-red-400 border-red-500/30 hover:bg-red-500/25' }, { id: 'warning', label: 'Warning', icon: AlertTriangle, color: 'bg-amber-500/15 text-amber-400 border-amber-500/30 hover:bg-amber-500/25' }, { id: 'info', label: 'Info', icon: Info, color: 'bg-blue-500/15 text-blue-400 border-blue-500/30 hover:bg-blue-500/25' }, { id: 'neutral', label: 'Neutral', icon: Bell, color: 'bg-zinc-500/15 text-zinc-400 border-zinc-500/30 hover:bg-zinc-500/25' }, ]; const animations = [ { id: 'slideIn', label: 'Slide In', desc: 'Slides from right with spring' }, { id: 'slideInLeft', label: 'Slide Left', desc: 'Slides from left with spring' }, { id: 'slideUp', label: 'Slide Up', desc: 'Slides up from bottom' }, { id: 'slideDown', label: 'Slide Down', desc: 'Slides down from top' }, { id: 'fade', label: 'Fade', desc: 'Smooth fade in/out' }, { id: 'scale', label: 'Scale', desc: 'Scales from small to normal' }, { id: 'bounce', label: 'Bounce', desc: 'Springy bounce effect' }, { id: 'elastic', label: 'Elastic', desc: 'Elastic spring with movement' }, { id: 'flip', label: 'Flip', desc: '3D flip rotation' }, { id: 'swing', label: 'Swing', desc: 'Rotating swing effect' }, { id: 'zoomBounce', label: 'Zoom Bounce', desc: 'Dramatic zoom with bounce' }, ]; const positions = [ { id: 'top-left', label: 'Top Left' }, { id: 'top-center', label: 'Top Center' }, { id: 'top-right', label: 'Top Right' }, { id: 'bottom-left', label: 'Bottom Left' }, { id: 'bottom-center', label: 'Bottom Center' }, { id: 'bottom-right', label: 'Bottom Right' }, { id: 'center', label: 'Center' }, ]; export default function ControlPanel({ config, onConfigChange, onTrigger, onClearAll }) { const [activeTab, setActiveTab] = useState('content'); const tabs = [ { id: 'content', label: 'Content' }, { id: 'animation', label: 'Animation' }, { id: 'behavior', label: 'Behavior' }, ]; return (

Configuration

{tabs.map((tab) => ( ))}
{activeTab === 'content' && (
{categories.map((cat) => { const Icon = cat.icon; return ( ); })}
onConfigChange('title', e.target.value)} className="w-full rounded-xl border border-white/[0.06] bg-zinc-900/60 px-4 py-2.5 text-sm text-white placeholder-zinc-600 outline-none transition-all duration-200 focus:border-indigo-400/30 focus:ring-1 focus:ring-indigo-400/20" placeholder="Enter alert title..." />