Files
twenty_crm/packages/twenty-front/src/modules/auth/states/currentUserState.ts
2023-12-10 18:10:54 +01:00

14 lines
284 B
TypeScript

import { atom } from 'recoil';
import { User } from '~/generated/graphql';
export type CurrentUser = Pick<
User,
'id' | 'email' | 'supportUserHash' | 'canImpersonate'
>;
export const currentUserState = atom<CurrentUser | null>({
key: 'currentUserState',
default: null,
});