1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/user/UserProfile/index.tsx

23 lines
594 B
TypeScript
Raw Normal View History

import UserProfile from './UserProfile';
2022-03-28 10:49:59 +02:00
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;