repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git]
/
packages
/
components
/
payments
/
client-extensions
/
data-utils.ts
blob
dde564ce419e02e212e4049a09aba8672b8be855
1
import { useSelector } from '@proton/redux-shared-store';
2
import { type UserModel } from '@proton/shared/lib/interfaces';
3
4
export const useCachedUser = () => {
5
const user: UserModel | undefined = useSelector((state) => state.user?.value);
6
return user;
7
};