Update guest v2 branding and theming

This commit is contained in:
Codex Agent
2026-02-03 15:18:44 +01:00
parent a0ef90e13a
commit a820ef2e8b
57 changed files with 1416 additions and 277 deletions

View File

@@ -0,0 +1,18 @@
export type GuestToastPayload = {
text: string;
type?: 'success' | 'error' | 'info';
action?: { label: string; onClick: () => void };
durationMs?: number;
};
export function pushGuestToast(detail: GuestToastPayload) {
if (typeof window === 'undefined') {
return;
}
try {
window.dispatchEvent(new CustomEvent('guest-toast', { detail }));
} catch (error) {
console.warn('Dispatching toast event failed', error);
}
}