2022-02-08 13:36:32 +01:00
|
|
|
import UserProfile from './UserProfile';
|
|
|
|
import { useLocationSettings } from '../../../hooks/useLocationSettings';
|
2022-02-10 17:04:10 +01:00
|
|
|
import { useAuthUser } from '../../../hooks/api/getters/useAuth/useAuthUser';
|
2022-02-08 13:36:32 +01:00
|
|
|
|
|
|
|
const UserProfileContainer = () => {
|
|
|
|
const { locationSettings, setLocationSettings } = useLocationSettings();
|
2022-02-10 17:04:10 +01:00
|
|
|
const { user } = useAuthUser();
|
|
|
|
|
|
|
|
if (!user) {
|
|
|
|
return null;
|
|
|
|
}
|
2022-02-08 13:36:32 +01:00
|
|
|
|
|
|
|
return (
|
|
|
|
<UserProfile
|
|
|
|
locationSettings={locationSettings}
|
|
|
|
setLocationSettings={setLocationSettings}
|
2022-02-10 17:04:10 +01:00
|
|
|
profile={user}
|
2022-02-08 13:36:32 +01:00
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default UserProfileContainer;
|