Portal/rsconcept/frontend/src/pages/UserProfilePage/UserContents.tsx
2024-12-12 13:17:24 +03:00

26 lines
727 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use client';
import DataLoader from '@/components/wrap/DataLoader';
import { useUserProfile } from '@/context/UserProfileContext';
import EditorPassword from './EditorPassword';
import EditorProfile from './EditorProfile';
function UserContents() {
const { user, error, loading } = useUserProfile();
return (
<DataLoader isLoading={loading} error={error} hasNoData={!user}>
<div className='cc-fade-in flex gap-6 py-2 mx-auto w-fit'>
<h1 className='mb-4 select-none'>Учетные данные пользователя</h1>
<div className='flex py-2'>
<EditorProfile />
<EditorPassword />
</div>
</div>
</DataLoader>
);
}
export default UserContents;