import React from 'react'; import { Button, Empty, Table, Switch } from '@douyinfe/semi-ui'; import { IconDelete, IconEdit, IconHistogram } from '@douyinfe/semi-icons'; import { IllustrationNoResult, IllustrationNoResultDark } from '@douyinfe/semi-illustrations'; const empty = ( } darkModeImage={} description={'No jobs available'} /> ); export default function JobTable({ jobs = {}, onJobRemoval, onJobStatusChanged, onJobEdit, onJobInsight } = {}) { return ( { return onJobStatusChanged(job.id, checked)} checked={job.enabled} />; }, }, { title: 'Job Name', dataIndex: 'name', }, { title: 'Number of findings', dataIndex: 'numberOfFoundListings', render: (value) => { return value || 0; }, }, { title: 'Active provider', dataIndex: 'provider', render: (value) => { return value.length || 0; }, }, { title: 'Active notification adapter', dataIndex: 'notificationAdapter', render: (value) => { return value.length || 0; }, }, { title: '', dataIndex: 'tools', render: (_, job) => { return (
); }, }, ]} dataSource={jobs} /> ); }