Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / components / payments / client-extensions / data-utils.ts
blobdde564ce419e02e212e4049a09aba8672b8be855
1 import { useSelector } from '@proton/redux-shared-store';
2 import { type UserModel } from '@proton/shared/lib/interfaces';
4 export const useCachedUser = () => {
5     const user: UserModel | undefined = useSelector((state) => state.user?.value);
6     return user;
7 };