minty/src/app/state/userRoomProfile.ts
Ajay Bura 4d1ae4eafd
Redesign user profile view (#2396)
* WIP - new profile view

* render common rooms in user profile

* add presence component

* WIP - room user profile

* temp hide profile button

* show mutual rooms in spaces, rooms and direct messages categories

* add message button

* add option to change user powers in profile

* improve ban info and option to unban

* add share user button in user profile

* add option to block user in user profile

* improve blocked user alert body

* add moderation tool in user profile

* open profile view on left side in member drawer

* open new user profile in all places
2025-08-09 22:16:10 +10:00

12 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);