mirror of https://github.com/portainer/portainer
22 lines
401 B
TypeScript
22 lines
401 B
TypeScript
import { Task } from '@/react/nomad/types';
|
|
|
|
import { NestedDatatable } from '@@/datatables/NestedDatatable';
|
|
|
|
import { useColumns } from './columns';
|
|
|
|
export interface Props {
|
|
data: Task[];
|
|
}
|
|
|
|
export function TasksDatatable({ data }: Props) {
|
|
const columns = useColumns();
|
|
|
|
return (
|
|
<NestedDatatable
|
|
columns={columns}
|
|
dataset={data}
|
|
defaultSortBy="taskName"
|
|
/>
|
|
);
|
|
}
|