import React, { useEffect } from "react"; import Image from "next/image"; // assets import BluePlaneLogoWithoutText from "public/plane-logos/blue-without-text.svg"; // 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 OnBoardingPage = () => { const { user: userStore } = useMobxStore(); const user = userStore?.currentUser; const { setToastAlert } = useToast(); useEffect(() => { const user = userStore?.currentUser; if (!user) { userStore.fetchCurrentUser(); } }, [userStore]); return (