import { Col, Row } from "reactstrap";
import ValidationField from "../../../Components/ValidationField/ValidationField";
import MyMap from "./field/MyMap";

const Form = ({isEdit = false}:{isEdit?:boolean}) => {
  return (
    <Row className="w-100">
      <Col>
        <ValidationField name="first_name" placeholder="first_name" label="first_name" />
        <ValidationField name="last_name" placeholder="last_name" label="last_name" />
        <ValidationField name="username" placeholder="username" label="username" />
      {!isEdit &&
      <ValidationField name="password" placeholder="password" label="password"  />
      }
        
       
      </Col>
<Col>
<ValidationField name="contact_number1" placeholder="contact_number1" label="contact_number1" />
        <ValidationField name="contact_number2" placeholder="contact_number2" label="contact_number2" />
    
<ValidationField name="lat" placeholder="lat" label="lat" />
        <ValidationField name="lng" placeholder="lng" label="lng" />        
<MyMap/>
</Col>
    </Row>
  );
};

export default Form;
