import GlassSurface from '../ui/GlassSurface.js'; function ToastIcon({ type }) { if (type === 'error') { return ( ); } if (type === 'info') { return ( ); } return ( ); } const ICON_COLORS = { success: 'var(--color-success)', error: 'var(--color-error)', info: 'var(--color-info)', }; /** * Floating toast overlay for the camera viewport. * * Always rendered in the DOM so CSS transitions work on enter and exit. * The parent controls visibility via the `visible` prop and handles the * auto-dismiss timer. */ export default function ScannerToast({ message, visible, type = 'success' }) { const color = ICON_COLORS[type] || ICON_COLORS.success; return (
{message}
); }