import { useEffect, useRef } from "react"; import PropTypes from "prop-types"; import { useTheme } from "@emotion/react"; import { Box, Button, Stack, Typography } from "@mui/material"; import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded"; import Field from "../../../../Components/Inputs/Field"; import Check from "../../../../Components/Check/Check"; import { useValidatePassword } from "../../hooks/useValidatePassword"; StepThree.propTypes = { onSubmit: PropTypes.func, onBack: PropTypes.func, }; /** * Renders the third step of the sign up process. * * @param {Object} props * @param {Function} props.onSubmit - Callback function to handle form submission. * @param {Function} props.onBack - Callback function to handle "Back" button click. * @returns {JSX.Element} */ function StepThree({ onSubmit, onBack }) { const theme = useTheme(); const inputRef = useRef(null); useEffect(() => { if (inputRef.current) { inputRef.current.focus(); } }, []); const { handleChange, feedbacks, form, errors } = useValidatePassword(); return ( <> Sign Up Create your password ); } export { StepThree };