import JobChecklistTemplateList from "./components/job-checklist-template-list/job-checklist-template-list.component";
import JobChecklistForm from "./components/job-checklist-form/job-checklist-form.component";
import { Col, Row } from "antd";

export default function JobIntakeComponent({ checklistConfig, type, job }) {
  const { form, templates } = checklistConfig;

  return (
    <Row gutter={[16, 16]}>
      <Col sm={24} md={8}>
        <JobChecklistTemplateList templates={templates} type={type} />
      </Col>
      <Col sm={24} md={16}>
        <JobChecklistForm formItems={form} type={type} job={job} />
      </Col>
    </Row>
  );
}
