import React from 'react' import { Bell, Zap, CheckCircle, Navigation, Calendar, Clock, Image, MessageSquare, Tag, UserPlus, Download, MapPin, Loader2, } from 'lucide-react' import type { LucideIcon } from 'lucide-react' import { useDevNotifications } from '../../../components/Admin/useDevNotifications' import { MAdminCard, MAdminCardHead } from './MAdminUi' /** The phone panel toasts the thrown error's own message rather than the server's error field. */ const errorMessage = (err: unknown) => (err instanceof Error ? err.message : 'Failed') const SELECT_CLASS = 'mb-2 h-[42px] w-full rounded-xl border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] px-3 text-[0.84375rem] text-m-ink outline-none focus:border-[color:var(--m-faint)]' function Btn({ id, label, sub, icon: Icon, color, sending, onClick, }: { id: string label: string sub: string icon: LucideIcon color: string sending: string | null onClick: () => void }) { return ( ) } // Dev-only notification testing panel, re-skinned to the mobile admin system. // All state, fetches and payloads come from useDevNotifications, shared // with the desktop DevNotificationsPanel; only the presentation layer differs. export default function MAdminDevNotificationsPanel(): React.ReactElement { const { sending, trips, selectedTripId, setSelectedTripId, users, selectedUserId, setSelectedUserId, tripInviteId, vacayInviteId, send, } = useDevNotifications({ errorMessage }) return (