'use client'; import type { Toast } from '@/lib/useToasts'; // ISS-008 (v0.17.0): the bottom-right toast stack — action errors and game events derived // from snapshot diffs. Fixed-position overlay above the map; each item auto-dismisses via // the hook's TTL or its × button. export default function ToastStack({ toasts, onDismiss }: { toasts: Toast[]; onDismiss?: (id: number) => void }) { if (toasts.length === 0) return null; return (