import { useEffect, useCallback } from "react"; import { observer } from "mobx-react-lite"; import Image from "next/image"; // components import { InstanceSetupFormRoot } from "components/instance"; // hooks import { useMobxStore } from "lib/mobx/store-provider"; // images import BluePlaneLogoWithoutText from "public/plane-logos/blue-without-text.png"; export const InstanceSetupView = observer(() => { // store const { user: { fetchCurrentUser }, } = useMobxStore(); const mutateUserInfo = useCallback(() => { fetchCurrentUser(); }, [fetchCurrentUser]); useEffect(() => { mutateUserInfo(); }, [mutateUserInfo]); return ( <>