import { createState } from 'twenty-ui'; import { User } from '~/generated/graphql'; export type CurrentUser = Pick< User, | 'id' | 'email' | 'supportUserHash' | 'analyticsTinybirdJwt' | 'canImpersonate' | 'onboardingStatus' | 'userVars' >; export const currentUserState = createState({ key: 'currentUserState', defaultValue: null, });