import PropTypes from 'prop-types' import { Checkbox, RippleButton } from '../../atoms' import { InputHooks, NewSelect } from '../../molecules' import { Container } from './styled' export const Form = ({ errors = {}, check = false, modal = 0, values = {}, departments = [], road, dataForm = {}, countries = [], cities = [], errorForm = {}, setModal = () => { return }, handleChangeSearch = () => { return }, handleChange = () => { return }, handleCheckChange = () => { return }, handleSave = () => { return } }) => { const disabled = !dataForm?.uLocationKnow || !values?.ctId || !values?.dId || !values?.countryId || !values?.rId return (
{ e.preventDefault() return handleSave() }} >
{ return handleCheckChange(e) }} type='checkbox' />
{ return setModal(0) }} widthButton={'100%'} > Volver Guardar dirección
) } Form.propTypes = { check: PropTypes.bool, cities: PropTypes.array, countries: PropTypes.array, dataForm: PropTypes.object, departments: PropTypes.array, errorForm: PropTypes.object, errors: PropTypes.object, hableSearchLocation: PropTypes.func, handleChange: PropTypes.func, handleChangeSearch: PropTypes.func, handleCheckChange: PropTypes.func, handleSave: PropTypes.func, modal: PropTypes.number, road: PropTypes.any, setModal: PropTypes.func, values: PropTypes.object }