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

15 lines
314 B
TypeScript
Raw Normal View History

import UserProfile from './UserProfile';
2022-03-28 10:49:59 +02:00
import { useAuthUser } from 'hooks/api/getters/useAuth/useAuthUser';
const UserProfileContainer = () => {
const { user } = useAuthUser();
if (!user) {
return null;
}
return <UserProfile profile={user} />;
};
export default UserProfileContainer;