mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
18 lines
528 B
TypeScript
18 lines
528 B
TypeScript
![]() |
import BackendError from '../../components/BackendError';
|
||
|
import { Loader } from '../../components/Common/Loader';
|
||
|
import { useUserProfile } from '../../hooks/useUserProfile';
|
||
|
import { UserProfile } from './UserProfile';
|
||
|
|
||
|
function UserProfilePage() {
|
||
|
const { user, error, loading } = useUserProfile();
|
||
|
|
||
|
return (
|
||
|
<div className='container'>
|
||
|
{ loading && <Loader /> }
|
||
|
{ error && <BackendError error={error} />}
|
||
|
{ user && <UserProfile profile={user} /> }
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default UserProfilePage;
|