Files
Sable/src/app/state/userRoomProfile.ts
T
7w1 1717ca872f migrate to oxlint and oxfmt
ran formatter
fixed lint issues, primarily getting rid of "any"s and swapping to .toSorted()
2026-04-16 22:15:13 -05:00

17 lines
479 B
TypeScript

import type { Position, RectCords } from 'folds';
import { atom } from 'jotai';
import type { UserProfile } from '$hooks/useUserProfile';
export type UserRoomProfileState = {
userId: string;
roomId: string;
spaceId?: string;
cords: RectCords;
position?: Position;
initialProfile?: Partial<UserProfile>;
};
export const userRoomProfileAtom = atom<UserRoomProfileState | undefined>(undefined);
export const profilesCacheAtom = atom<Record<string, UserProfile>>({});