import React from 'react'
import DataTable from '../../../../Layout/Dashboard/Table/DataTable'
import { useColumns } from './useTableColumns'
import { useFormikContext } from 'formik'

const FormTable = ({response}:{response:any}) => {
  const {values} = useFormikContext<any>()
  
  return (
    <div>
      
      <DataTable
      response={response}
      useColumns={useColumns}
      dataSource={values}
      pagination={false}
      loading={false}
      
    />

    </div>
  )
}

export default FormTable