1 import { createHooks } from '@proton/redux-utilities';
2 import type { UserModel } from '@proton/shared/lib/interfaces';
4 import { selectUser, userThunk } from './index';
6 const hooks = createHooks(userThunk, selectUser);
8 // This is technically incorrect but all apps assume that it's preloaded
9 export const useUser = hooks.useValue as unknown as () => [UserModel, boolean];
10 export const useGetUser = hooks.useGet;