tomodachi-share/frontend/src/session.ts
Landon & Emma 4bdfefc1c6 Add dark mode
Fix #8
2026-04-22 13:16:54 -04:00

15 lines
319 B
TypeScript

import { atom } from "nanostores";
export type Theme = "LIGHT" | "DARK" | "SYSTEM";
interface SessionData {
user?: {
id: string;
image: string;
name: string;
theme?: Theme;
};
}
// Undefined means still loading, null means no session
export const session = atom<SessionData | null | undefined>(undefined);