1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-01 13:47:27 +02:00
unleash.unleash/frontend/src/component/user/UserProfile/index.tsx
2022-03-28 09:49:59 +01:00

23 lines
594 B
TypeScript

import UserProfile from './UserProfile';
import { useLocationSettings } from 'hooks/useLocationSettings';
import { useAuthUser } from 'hooks/api/getters/useAuth/useAuthUser';
const UserProfileContainer = () => {
const { locationSettings, setLocationSettings } = useLocationSettings();
const { user } = useAuthUser();
if (!user) {
return null;
}
return (
<UserProfile
locationSettings={locationSettings}
setLocationSettings={setLocationSettings}
profile={user}
/>
);
};
export default UserProfileContainer;