export type PasswordConditionsHelperProps = { password: string } const PasswordConditionsHelper = ({ password }: PasswordConditionsHelperProps) => { const isEightCharactersLong = password.length >= 8 const hasUppercase = /[A-Z]/.test(password) const hasLowercase = /[a-z]/.test(password) const hasNumber = /[0-9]/.test(password) const hasSpecialCharacter = /[!@#$%^&*()_+\-=\[\]{};`':"\\|,.<>\/?]/.test(password) return (
{password.length > 72 && }
) } export default PasswordConditionsHelper type PasswordConditionProps = { title: string isMet: boolean } const PasswordCondition = ({ title, isMet }: PasswordConditionProps) => { return (
{isMet ? ( ) : ( )}

{title}

) }