import type { FunctionComponent } from "react"; import Alert from "~/features/core/components/alert"; import Button from "../button"; import SettingsSection from "../settings-section"; import { useActionData, useTransition } from "@remix-run/react"; const UpdatePassword: FunctionComponent = () => { 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 changePasswordMutation({ currentPassword, newPassword }); // TODO }; return (
); }; export default UpdatePassword;