import React, { useEffect } from "react"; // mobx import { observer } from "mobx-react-lite"; import { useMobxStore } from "lib/mobx/store-provider"; // services import authenticationService from "services/authentication.service"; // hooks import useToast from "hooks/use-toast"; // components import { OnBoardingForm } from "components/accounts/onboarding-form"; const imagePrefix = process.env.NEXT_PUBLIC_DEPLOY_WITH_NGINX ? "/spaces/" : ""; const OnBoardingPage = () => { const { user: userStore } = useMobxStore(); const user = userStore?.currentUser; const { setToastAlert } = useToast(); useEffect(() => { const user = userStore?.currentUser; if (!user) { userStore.fetchCurrentUser(); } }, [userStore]); return (