Upload source code

This commit is contained in:
2026-03-12 19:36:34 +00:00
parent 783b6cb7e8
commit c7fb0c8561
158 changed files with 22553 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
// Global toast handler for use outside React components (like in axios interceptor)
let globalShowGuestWarning: (() => void) | null = null;
export const setGlobalToastHandler = (handler: () => void) => {
globalShowGuestWarning = handler;
};
export const triggerGuestWarning = () => {
if (globalShowGuestWarning) {
globalShowGuestWarning();
}
};