28 lines
640 B
JavaScript
28 lines
640 B
JavaScript
'use client';
|
|
|
|
import { useState } from 'react';
|
|
|
|
import userData from '@/data/userData.json';
|
|
import DashboardPage from "@/components/dashboard";
|
|
import UserAccountPage from "@/components/dashboard/userAccount/UserAccount";
|
|
|
|
function UserAccount() {
|
|
|
|
const [value, setValue] = useState(0);
|
|
|
|
return (
|
|
<DashboardPage
|
|
value={value}
|
|
setValue={setValue}
|
|
user={userData.data}
|
|
>
|
|
<UserAccountPage
|
|
value={value}
|
|
setValue={setValue}
|
|
user={userData.data}
|
|
/>
|
|
</DashboardPage>
|
|
)
|
|
}
|
|
|
|
export default UserAccount |