mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
19 lines
503 B
TypeScript
19 lines
503 B
TypeScript
![]() |
import BackendError from '../../components/BackendError';
|
||
|
import { Loader } from '../../components/Common/Loader';
|
||
|
import { useUserProfile } from '../../context/UserProfileContext';
|
||
|
import { UserProfile } from './UserProfile';
|
||
|
|
||
|
function UserTabs() {
|
||
|
const { user, error, loading } = useUserProfile();
|
||
|
|
||
|
return (
|
||
|
<div className='w-full'>
|
||
|
{ loading && <Loader /> }
|
||
|
{ error && <BackendError error={error} />}
|
||
|
{ user && <UserProfile /> }
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default UserTabs;
|