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.

26 lines
444 B

import TableBody from "./TableBody"
import TableHead from "./TableHead"
interface Props {
columns:string[]
endpoint: string
}
const Table = ({ columns, endpoint }:Props) => {
return (
<div className="overflow-x-auto">
<table className="table w-full table-compact">
<TableHead columns={columns} />
<TableBody columns={columns} endpoint={endpoint} />
</table>
</div>
)
}
export default Table