"use client"; import PasswordForm from "@/components/form/settings/password"; import ProfileForm from "@/components/form/settings/profile"; import { close, loading } from "@/config/swal"; import { getProfile } from "@/service/master-user"; import { Tab, Tabs } from "@heroui/react"; import { useEffect, useState } from "react"; export default function Settings() { const [profile, setProfile] = useState(); useEffect(() => { initFetch(); }, []); const initFetch = async () => { loading(); const profile = await getProfile(); setProfile(profile?.data?.data); close(); }; return (
initFetch()} /> initFetch()} />
); }