import CourtesyCarCreateFormComponent from "../../components/courtesy-car-form/courtesy-car-form.component";
import CourtesyCarContractListComponent from "../../components/courtesy-car-contract-list/courtesy-car-contract-list.component";
import { Col, Divider, Row } from "antd";

export default function CourtesyCarDetailPageComponent({ contracts, form, saveLoading, totalContracts }) {
  return (
    <Row gutter={[16, 16]}>
      <Col span={24}>
        <CourtesyCarCreateFormComponent form={form} saveLoading={saveLoading} />
      </Col>
      <Divider orientation="horizontal" />
      <Col span={24}>
        <CourtesyCarContractListComponent contracts={contracts} totalContracts={totalContracts} />
      </Col>
    </Row>
  );
}
