import type { FunctionComponent } from "react"; import { useActionData, useTransition } from "@remix-run/react"; import Alert from "../../../core/components/alert"; import Button from "../button"; import SettingsSection from "../settings-section"; import useSession from "~/features/core/hooks/use-session"; const ProfileInformations: FunctionComponent = () => { const user = useSession(); const transition = useTransition(); const actionData = useActionData(); const isSubmitting = transition.state === "submitting"; const isSuccess = actionData?.submitted === true; const error = actionData?.error; const isError = !!error; const onSubmit = async () => { // await updateUserMutation({ email, fullName }); // TODO }; return (
); }; export default ProfileInformations;