2023-03-06 20:25:04 +00:00
|
|
|
import { CellProps, Column } from 'react-table';
|
2022-11-22 12:16:34 +00:00
|
|
|
|
2023-03-06 20:25:04 +00:00
|
|
|
import { WaitingRoomEnvironment } from '../types';
|
2022-11-22 12:16:34 +00:00
|
|
|
|
2023-03-06 20:25:04 +00:00
|
|
|
export const columns: readonly Column<WaitingRoomEnvironment>[] = [
|
2022-11-22 12:16:34 +00:00
|
|
|
{
|
|
|
|
Header: 'Name',
|
|
|
|
accessor: (row) => row.Name,
|
|
|
|
id: 'name',
|
|
|
|
disableFilters: true,
|
|
|
|
Filter: () => null,
|
|
|
|
canHide: false,
|
|
|
|
sortType: 'string',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Header: 'Edge ID',
|
|
|
|
accessor: (row) => row.EdgeID,
|
|
|
|
id: 'edge-id',
|
|
|
|
disableFilters: true,
|
|
|
|
Filter: () => null,
|
|
|
|
canHide: false,
|
|
|
|
sortType: 'string',
|
|
|
|
},
|
2023-03-06 20:25:04 +00:00
|
|
|
{
|
|
|
|
Header: 'Edge Groups',
|
|
|
|
accessor: (row) => row.EdgeGroups || [],
|
|
|
|
Cell: ({ value }: CellProps<WaitingRoomEnvironment, string[]>) =>
|
|
|
|
value.join(', ') || '-',
|
|
|
|
id: 'edge-groups',
|
|
|
|
disableFilters: true,
|
|
|
|
Filter: () => null,
|
|
|
|
canHide: false,
|
|
|
|
sortType: 'string',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Header: 'Group',
|
|
|
|
accessor: (row) => row.Group || '-',
|
|
|
|
id: 'group',
|
|
|
|
disableFilters: true,
|
|
|
|
Filter: () => null,
|
|
|
|
canHide: false,
|
|
|
|
sortType: 'string',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Header: 'Tags',
|
|
|
|
accessor: (row) => row.Tags || [],
|
|
|
|
Cell: ({ value }: CellProps<WaitingRoomEnvironment, string[]>) =>
|
|
|
|
value.join(', ') || '-',
|
|
|
|
id: 'tags',
|
|
|
|
disableFilters: true,
|
|
|
|
Filter: () => null,
|
|
|
|
canHide: false,
|
|
|
|
sortType: 'string',
|
|
|
|
},
|
2022-11-22 12:16:34 +00:00
|
|
|
] as const;
|