mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-05-13 13:17:45 +00:00
12 lines
252 B
TypeScript
12 lines
252 B
TypeScript
import { atom } from "nanostores";
|
|
|
|
interface SessionData {
|
|
user?: {
|
|
id: string;
|
|
image: string;
|
|
name: string;
|
|
};
|
|
}
|
|
|
|
// Undefined means still loading, null means no session
|
|
export const session = atom<SessionData | null | undefined>(undefined);
|