You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
interface Props {
|
|
columns:string []
|
|
}
|
|
|
|
export const TableHead = ({ columns }:Props) => {
|
|
return (
|
|
<thead>
|
|
<tr>
|
|
<th className="w-4"></th>
|
|
{columns.map(
|
|
(col => (
|
|
<th key={col}>{col.toLocaleUpperCase()}</th>
|
|
))
|
|
)}
|
|
</tr>
|
|
</thead>
|
|
)
|
|
}
|
|
|
|
export default TableHead |