App chrash + seo

This commit is contained in:
2026-05-10 22:37:01 +02:00
parent 9386ae1be7
commit 2658c37453
28 changed files with 13232 additions and 519 deletions

17
services/analytics.ts Normal file
View File

@@ -0,0 +1,17 @@
type AnalyticsProperties = Record<string, unknown>;
type SafeAnalytics = {
capture: (event: string, properties?: AnalyticsProperties) => void;
identify: (userId: string, properties?: AnalyticsProperties) => void;
reset: () => void;
};
const noop = () => {};
const safeAnalytics: SafeAnalytics = {
capture: noop,
identify: noop,
reset: noop,
};
export const useSafeAnalytics = (): SafeAnalytics => safeAnalytics;