mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
18 lines
525 B
TypeScript
18 lines
525 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='w-full'>
|
|
{ loading && <Loader /> }
|
|
{ error && <BackendError error={error} />}
|
|
{ user && <UserProfile profile={user} /> }
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default UserProfilePage; |