13 lines
302 B
TypeScript
13 lines
302 B
TypeScript
|
|
import { Position, RectCords } from 'folds';
|
||
|
|
import { atom } from 'jotai';
|
||
|
|
|
||
|
|
export type UserRoomProfileState = {
|
||
|
|
userId: string;
|
||
|
|
roomId: string;
|
||
|
|
spaceId?: string;
|
||
|
|
cords: RectCords;
|
||
|
|
position?: Position;
|
||
|
|
};
|
||
|
|
|
||
|
|
export const userRoomProfileAtom = atom<UserRoomProfileState | undefined>(undefined);
|