mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-01 13:47:27 +02:00
23 lines
594 B
TypeScript
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;
|