import React from 'react';
import { Empty, Table, Button } from '@douyinfe/semi-ui';
import { IconDelete, IconEdit } from '@douyinfe/semi-icons';
export default function NotificationAdapterTable({ notificationAdapter = [], onRemove, onEdit } = {}) {
return (
}
columns={[
{
title: 'Notification Adapter Name',
dataIndex: 'name',
},
{
title: '',
dataIndex: 'tools',
render: (_, record) => {
return (
}
onClick={() => onEdit(record.id)}
style={{ marginRight: '1rem' }}
/>
} onClick={() => onRemove(record.id)} />
);
},
},
]}
dataSource={notificationAdapter}
/>
);
}