upgrade to tamagui v2 and guest pwa overhaul

This commit is contained in:
Codex Agent
2026-02-02 13:01:20 +01:00
parent 2e78f3ab8d
commit 7c6e14ffe2
168 changed files with 47462 additions and 8914 deletions

View File

@@ -0,0 +1,16 @@
import type { EventData } from './eventApi';
export function buildEventShareLink(event: EventData | null, token: string | null): string {
if (typeof window === 'undefined') {
return '';
}
const origin = window.location.origin;
const eventToken = token ?? event?.join_token ?? '';
if (!eventToken) {
return origin;
}
return `${origin}/e/${encodeURIComponent(eventToken)}`;
}