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,24 @@
import { fetchJson } from './apiClient';
import { getDeviceId } from '../lib/device';
export type EmotionItem = Record<string, unknown>;
type EmotionResponse = {
data?: EmotionItem[];
};
export async function fetchEmotions(eventToken: string, locale?: string) {
const params = new URLSearchParams();
if (locale) params.set('locale', locale);
const response = await fetchJson<EmotionResponse>(
`/api/v1/events/${encodeURIComponent(eventToken)}/emotions${params.toString() ? `?${params.toString()}` : ''}`,
{
headers: {
'X-Device-Id': getDeviceId(),
},
}
);
return response.data?.data ?? [];
}