const CloseAccount = React.memo(() => {
const submit = () => {
console.log('....')
}
const canSubmit = (event:any) => {
if(event.target.type === 'text') {
state.email = event.target.value
} else if (event.target.type === 'checkbox') {
state.checkState = event.target.checked
}
console.log(!(state.email && state.checkState))
}
const state = {
email: '',
checkState: false,
}
return (
)
})
CloseAccount.displayName = 'CloseAccount'
export default CloseAccount