mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-04 15:52:24 -08:00
ran formatter fixed lint issues, primarily getting rid of "any"s and swapping to .toSorted()
17 lines
479 B
TypeScript
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>>({});
|