blob: 961da65fbaffccb8f4db59cdb8b60a6830b15030 (
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 { SimpleTable } from "@/components";
import { FunctionComponent, useMemo } from "react";
import { Column } from "react-table";
interface Props {
providers: readonly System.Provider[];
}
const Table: FunctionComponent<Props> = (props) => {
const columns: Column<System.Provider>[] = useMemo<Column<System.Provider>[]>(
() => [
{
Header: "Name",
accessor: "name",
},
{
Header: "Status",
accessor: "status",
},
{
Header: "Next Retry",
accessor: "retry",
},
],
[],
);
return <SimpleTable columns={columns} data={props.providers}></SimpleTable>;
};
export default Table;
|