

interface Props {
  columns:{id:string, name:string} []
}

export const TableHeadForm = ({ columns }:Props) => {
  return (
    <thead>
      <tr>
        
        {columns.map(
          (col => (
            <th key={col['id']}>{col['id']}</th>
          ))
        )}
      </tr>
    </thead>
  )
}

export default TableHeadForm