import { Flex } from 'UIKit/grid';
import renderFormRows from '../../lib/render-rows';
import { id, rows, title } from './config';
import InsuranceTable from './InsuranceTable';

function Insurance() {
  const renderedRows = renderFormRows(rows);

  return (
    <Flex flexDirection="column">
      {renderedRows}
      <InsuranceTable />
      {/* TODO: add FinGAP Table */}
    </Flex>
  );
}

export default {
  id,
  title,
  Component: Insurance,
};
