/* * Copyright (c) 2026 by Christian Kellner. * Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause */ import { IllustrationNoResult, IllustrationNoResultDark } from '@douyinfe/semi-illustrations'; import { format } from '../../services/time/timeService'; import { Table, Button, Empty, Tag } from '@douyinfe/semi-ui-19'; import { IconDelete, IconEdit } from '@douyinfe/semi-icons'; const empty = ( } darkModeImage={} description="No users found." /> ); export default function UserTable({ user = [], onUserRemoval, onUserEdit } = {}) { return ( (
{value} {record.isAdmin && ( ADMIN )}
), }, { title: 'Last login', dataIndex: 'lastLogin', render: (value) => (value == null ? '---' : format(value)), }, { title: 'Jobs', dataIndex: 'numberOfJobs', }, { title: 'MCP Token', dataIndex: 'mcpToken', render: (value) => ( {value || '---'} ), }, { title: '', dataIndex: 'tools', render: (_, record) => (
), }, ]} dataSource={user} /> ); }