import { Authenticator, CheckboxField, useAuthenticator, AccountSettings } from '@aws-amplify/ui-react'
export function LSAuthenticator({ termsLink, children }: any) {
return (
{/* Re-use default `Authenticator.SignUp.FormFields` */}
{/* Append & require Terms & Conditions field to sign up */}
I agree with the Terms & Conditions)}
/>
>
)
},
},
}}
services={{
async validateCustomSignUp(formData) {
if (!formData.acknowledgement) {
return {
acknowledgement: '',
}
}
}
}}
>
{children}
)
}
export function LSAuthenticatorChangePassword(
{onSuccess, onError}
) {
return (
)
}