import { useEffect, useRef /* , useState */ } 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 { credentials } from "../../../../Validation/validation"; */ import { useValidatePassword } from "../../hooks/useValidatePassword"; StepThree.propTypes = { form: PropTypes.object, errors: PropTypes.object, onSubmit: PropTypes.func, /* onChange: PropTypes.func, */ onBack: PropTypes.func, }; /** * Renders the third step of the sign up process. * * @param {Object} props * @param {Object} props.form - Form state object. * @param {Object} props.errors - Object containing form validation errors. * @param {Function} props.onSubmit - Callback function to handle form submission. * @param {Function} props.onChange - Callback function to handle form input changes. * @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 };