blob: 8e3ff7b8943d28958f2ecc47d69d5b2d49fc8542 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import { FunctionComponent, useMemo } from "react";
import { ColumnDef } from "@tanstack/react-table";
import SimpleTable from "@/components/tables/SimpleTable";
interface Props {
providers: System.Provider[];
}
const Table: FunctionComponent<Props> = (props) => {
const columns = useMemo<ColumnDef<System.Provider>[]>(
() => [
{
header: "Name",
accessorKey: "name",
},
{
header: "Status",
accessorKey: "status",
},
{
header: "Next Retry",
accessorKey: "retry",
},
],
[],
);
return <SimpleTable columns={columns} data={props.providers}></SimpleTable>;
};
export default Table;
|