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>()
  console.log(response);
    const data = response?.data?.data?.abilities ;
    console.log(data);
    
  return (
    <div>
      
      <DataTable
      response={response}
      useColumns={useColumns}
      dataSource={data}
      pagination={false}
      loading={false}
      rowKey={"name"}
      
    />

    </div>
  )
}

export default FormTable