Files
new-api/web/src/components/LogsTable.js

802 lines
21 KiB
JavaScript
Raw Normal View History

2024-03-15 16:05:33 +08:00
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
2024-03-23 21:24:39 +08:00
import {
API,
2024-08-11 11:25:32 +08:00
copy,
getTodayStartTimestamp,
2024-03-23 21:24:39 +08:00
isAdmin,
showError,
showSuccess,
2024-08-11 11:25:32 +08:00
timestamp2string,
2024-03-23 21:24:39 +08:00
} from '../helpers';
2023-10-31 00:03:22 +08:00
2024-03-23 21:24:39 +08:00
import {
Avatar,
Button, Descriptions,
2024-03-23 21:24:39 +08:00
Form,
Layout,
Modal,
Select,
Space,
Spin,
Table,
Tag,
Tooltip
2024-03-23 21:24:39 +08:00
} from '@douyinfe/semi-ui';
2024-03-15 16:05:33 +08:00
import { ITEMS_PER_PAGE } from '../constants';
2024-05-12 15:35:57 +08:00
import {
2024-11-07 16:12:09 +08:00
renderAudioModelPrice,
renderModelPrice, renderModelPriceSimple,
2024-05-12 15:35:57 +08:00
renderNumber,
renderQuota,
2024-11-07 16:12:09 +08:00
stringToColor
2024-05-12 15:35:57 +08:00
} from '../helpers/render';
2024-03-15 16:05:33 +08:00
import Paragraph from '@douyinfe/semi-ui/lib/es/typography/paragraph';
2024-08-11 11:25:32 +08:00
import { getLogOther } from '../helpers/other.js';
2023-10-31 00:03:22 +08:00
2024-03-15 16:05:33 +08:00
const { Header } = Layout;
2024-03-15 15:07:14 +08:00
function renderTimestamp(timestamp) {
2024-03-23 21:24:39 +08:00
return <>{timestamp2string(timestamp)}</>;
}
2024-03-23 21:24:39 +08:00
const MODE_OPTIONS = [
{ key: 'all', text: 'all', value: 'all' },
{ key: 'self', text: 'current user', value: 'self' },
2024-03-23 21:24:39 +08:00
];
2023-06-10 20:40:07 +08:00
2024-03-23 21:24:39 +08:00
const colors = [
'amber',
'blue',
'cyan',
'green',
'grey',
'indigo',
'light-blue',
'lime',
'orange',
'pink',
'purple',
'red',
'teal',
'violet',
'yellow',
];
2023-06-10 20:40:07 +08:00
const LogsTable = () => {
const { t } = useTranslation();
function renderType(type) {
switch (type) {
case 1:
return <Tag color='cyan' size='large'>{t('充值')}</Tag>;
case 2:
return <Tag color='lime' size='large'>{t('消费')}</Tag>;
case 3:
return <Tag color='orange' size='large'>{t('管理')}</Tag>;
case 4:
return <Tag color='purple' size='large'>{t('系统')}</Tag>;
default:
return <Tag color='black' size='large'>{t('未知')}</Tag>;
}
}
function renderIsStream(bool) {
if (bool) {
return <Tag color='blue' size='large'>{t('流')}</Tag>;
} else {
return <Tag color='purple' size='large'>{t('非流')}</Tag>;
}
}
function renderUseTime(type) {
const time = parseInt(type);
if (time < 101) {
2024-03-23 21:24:39 +08:00
return (
<Tag color='green' size='large'>
2024-03-23 21:24:39 +08:00
{' '}
{time} s{' '}
2024-03-23 21:24:39 +08:00
</Tag>
);
} else if (time < 300) {
2024-03-23 21:24:39 +08:00
return (
<Tag color='orange' size='large'>
2024-03-23 21:24:39 +08:00
{' '}
{time} s{' '}
2024-03-23 21:24:39 +08:00
</Tag>
);
} else {
2024-03-23 21:24:39 +08:00
return (
<Tag color='red' size='large'>
2024-03-23 21:24:39 +08:00
{' '}
{time} s{' '}
2024-03-23 21:24:39 +08:00
</Tag>
);
}
}
function renderFirstUseTime(type) {
let time = parseFloat(type) / 1000.0;
time = time.toFixed(1);
if (time < 3) {
2024-03-23 21:24:39 +08:00
return (
<Tag color='green' size='large'>
2024-03-23 21:24:39 +08:00
{' '}
{time} s{' '}
2024-03-23 21:24:39 +08:00
</Tag>
);
} else if (time < 10) {
2024-03-23 21:24:39 +08:00
return (
<Tag color='orange' size='large'>
2024-03-23 21:24:39 +08:00
{' '}
{time} s{' '}
2024-03-23 21:24:39 +08:00
</Tag>
);
} else {
return (
<Tag color='red' size='large'>
{' '}
{time} s{' '}
</Tag>
);
}
}
2024-03-23 21:24:39 +08:00
const columns = [
{
title: t('时间'),
2024-03-23 21:24:39 +08:00
dataIndex: 'timestamp2string',
},
{
title: t('渠道'),
2024-03-23 21:24:39 +08:00
dataIndex: 'channel',
className: isAdmin() ? 'tableShow' : 'tableHiddle',
render: (text, record, index) => {
return isAdminUser ? (
record.type === 0 || record.type === 2 ? (
<div>
{
<Tag
color={colors[parseInt(text) % colors.length]}
size='large'
>
{' '}
{text}{' '}
</Tag>
}
</div>
) : (
<></>
)
) : (
<></>
);
},
},
{
title: t('用户'),
2024-03-23 21:24:39 +08:00
dataIndex: 'username',
className: isAdmin() ? 'tableShow' : 'tableHiddle',
render: (text, record, index) => {
return isAdminUser ? (
<div>
<Avatar
size='small'
color={stringToColor(text)}
style={{ marginRight: 4 }}
onClick={() => showUserInfo(record.user_id)}
>
{typeof text === 'string' && text.slice(0, 1)}
</Avatar>
{text}
</div>
) : (
<></>
);
},
},
{
title: t('令牌'),
2024-03-23 21:24:39 +08:00
dataIndex: 'token_name',
render: (text, record, index) => {
return record.type === 0 || record.type === 2 ? (
<div>
<Tag
color='grey'
size='large'
onClick={() => {
copyText(text);
}}
>
{' '}
{t(text)}{' '}
2024-03-23 21:24:39 +08:00
</Tag>
</div>
) : (
<></>
);
},
},
{
title: t('分组'),
dataIndex: 'group',
render: (text, record, index) => {
if (record.type === 0 || record.type === 2) {
let other = JSON.parse(record.other);
if (other === null) {
return <></>;
}
if (other.group !== undefined) {
return (
<Tag color='blue' size='large'>
{' '}
{other.group}{' '}
</Tag>
);
} else {
return <></>;
}
} else {
return <></>;
}
},
},
2024-03-23 21:24:39 +08:00
{
title: t('类型'),
2024-03-23 21:24:39 +08:00
dataIndex: 'type',
render: (text, record, index) => {
return <>{renderType(text)}</>;
2024-03-23 21:24:39 +08:00
},
},
{
title: t('模型'),
2024-03-23 21:24:39 +08:00
dataIndex: 'model_name',
render: (text, record, index) => {
return record.type === 0 || record.type === 2 ? (
<>
2024-03-23 21:24:39 +08:00
<Tag
color={stringToColor(text)}
size='large'
onClick={() => {
copyText(text);
}}
>
{' '}
{text}{' '}
</Tag>
</>
2024-03-23 21:24:39 +08:00
) : (
<></>
);
},
},
{
title: t('用时/首字'),
2024-03-23 21:24:39 +08:00
dataIndex: 'use_time',
render: (text, record, index) => {
if (record.is_stream) {
let other = getLogOther(record.other);
return (
<>
2024-08-11 11:25:32 +08:00
<Space>
{renderUseTime(text)}
{renderFirstUseTime(other.frt)}
{renderIsStream(record.is_stream)}
</Space>
</>
);
} else {
return (
<>
2024-08-11 11:25:32 +08:00
<Space>
{renderUseTime(text)}
{renderIsStream(record.is_stream)}
</Space>
</>
);
}
2024-03-23 21:24:39 +08:00
},
},
{
title: t('提示'),
2024-03-23 21:24:39 +08:00
dataIndex: 'prompt_tokens',
render: (text, record, index) => {
return record.type === 0 || record.type === 2 ? (
<>{<span> {text} </span>}</>
2024-03-23 21:24:39 +08:00
) : (
<></>
);
},
},
{
title: t('补全'),
2024-03-23 21:24:39 +08:00
dataIndex: 'completion_tokens',
render: (text, record, index) => {
return parseInt(text) > 0 &&
(record.type === 0 || record.type === 2) ? (
<>{<span> {text} </span>}</>
2024-03-23 21:24:39 +08:00
) : (
<></>
);
},
},
{
title: t('花费'),
2024-03-23 21:24:39 +08:00
dataIndex: 'quota',
render: (text, record, index) => {
return record.type === 0 || record.type === 2 ? (
<>{renderQuota(text, 6)}</>
2024-03-23 21:24:39 +08:00
) : (
<></>
);
},
},
{
title: t('重试'),
dataIndex: 'retry',
className: isAdmin() ? 'tableShow' : 'tableHiddle',
render: (text, record, index) => {
let content = t('渠道') + `${record.channel}`;
if (record.other !== '') {
let other = JSON.parse(record.other);
if (other === null) {
return <></>;
}
if (other.admin_info !== undefined) {
if (
other.admin_info.use_channel !== null &&
other.admin_info.use_channel !== undefined &&
other.admin_info.use_channel !== ''
) {
// channel id array
let useChannel = other.admin_info.use_channel;
let useChannelStr = useChannel.join('->');
content = t('渠道') + `${useChannelStr}`;
}
}
}
return isAdminUser ? <div>{content}</div> : <></>;
},
},
2024-03-23 21:24:39 +08:00
{
title: t('详情'),
2024-03-23 21:24:39 +08:00
dataIndex: 'content',
render: (text, record, index) => {
let other = getLogOther(record.other);
if (other == null || record.type !== 2) {
2024-05-12 15:35:57 +08:00
return (
<Paragraph
ellipsis={{
rows: 2,
showTooltip: {
type: 'popover',
opts: { style: { width: 240 } },
},
}}
style={{ maxWidth: 240 }}
>
{text}
</Paragraph>
);
}
let content = renderModelPriceSimple(
other.model_ratio,
other.model_price,
other.group_ratio,
);
2024-03-23 21:24:39 +08:00
return (
2024-05-12 15:35:57 +08:00
<Paragraph
ellipsis={{
rows: 2,
}}
style={{ maxWidth: 240 }}
2024-05-12 15:35:57 +08:00
>
{content}
2024-05-12 15:35:57 +08:00
</Paragraph>
2024-03-23 21:24:39 +08:00
);
},
},
];
2024-03-15 16:05:33 +08:00
const [logs, setLogs] = useState([]);
const [expandData, setExpandData] = useState({});
2024-03-15 16:05:33 +08:00
const [showStat, setShowStat] = useState(false);
const [loading, setLoading] = useState(false);
const [loadingStat, setLoadingStat] = useState(false);
const [activePage, setActivePage] = useState(1);
const [logCount, setLogCount] = useState(ITEMS_PER_PAGE);
const [pageSize, setPageSize] = useState(ITEMS_PER_PAGE);
const [logType, setLogType] = useState(0);
const isAdminUser = isAdmin();
let now = new Date();
2024-08-01 17:36:26 +08:00
// 初始化start_timestamp为今天0点
2024-03-15 16:05:33 +08:00
const [inputs, setInputs] = useState({
username: '',
token_name: '',
model_name: '',
2024-08-01 17:36:26 +08:00
start_timestamp: timestamp2string(getTodayStartTimestamp()),
2024-03-15 16:05:33 +08:00
end_timestamp: timestamp2string(now.getTime() / 1000 + 3600),
2024-03-23 21:24:39 +08:00
channel: '',
2024-03-15 16:05:33 +08:00
});
2024-03-23 21:24:39 +08:00
const {
username,
token_name,
model_name,
start_timestamp,
end_timestamp,
channel,
} = inputs;
2024-03-15 16:05:33 +08:00
const [stat, setStat] = useState({
2024-03-23 21:24:39 +08:00
quota: 0,
token: 0,
2024-03-15 16:05:33 +08:00
});
2024-03-15 16:05:33 +08:00
const handleInputChange = (value, name) => {
setInputs((inputs) => ({ ...inputs, [name]: value }));
};
2024-03-15 16:05:33 +08:00
const getLogSelfStat = async () => {
let localStartTimestamp = Date.parse(start_timestamp) / 1000;
let localEndTimestamp = Date.parse(end_timestamp) / 1000;
2024-08-01 18:14:10 +08:00
let url = `/api/log/self/stat?type=${logType}&token_name=${token_name}&model_name=${model_name}&start_timestamp=${localStartTimestamp}&end_timestamp=${localEndTimestamp}`;
url = encodeURI(url);
2024-08-11 11:25:32 +08:00
let res = await API.get(url);
2024-03-15 16:05:33 +08:00
const { success, message, data } = res.data;
if (success) {
setStat(data);
} else {
showError(message);
}
};
2024-03-15 16:05:33 +08:00
const getLogStat = async () => {
let localStartTimestamp = Date.parse(start_timestamp) / 1000;
let localEndTimestamp = Date.parse(end_timestamp) / 1000;
2024-08-01 18:14:10 +08:00
let url = `/api/log/stat?type=${logType}&username=${username}&token_name=${token_name}&model_name=${model_name}&start_timestamp=${localStartTimestamp}&end_timestamp=${localEndTimestamp}&channel=${channel}`;
url = encodeURI(url);
2024-08-11 11:25:32 +08:00
let res = await API.get(url);
2024-03-15 16:05:33 +08:00
const { success, message, data } = res.data;
if (success) {
setStat(data);
} else {
showError(message);
}
};
2024-03-15 16:05:33 +08:00
const handleEyeClick = async () => {
if (loadingStat) {
return;
}
2024-03-15 16:05:33 +08:00
setLoadingStat(true);
if (isAdminUser) {
await getLogStat();
} else {
await getLogSelfStat();
}
setShowStat(true);
setLoadingStat(false);
};
2023-10-31 00:03:22 +08:00
2024-03-15 16:05:33 +08:00
const showUserInfo = async (userId) => {
if (!isAdminUser) {
return;
}
const res = await API.get(`/api/user/${userId}`);
const { success, message, data } = res.data;
if (success) {
Modal.info({
title: t('用户信息'),
2024-03-23 21:24:39 +08:00
content: (
<div style={{ padding: 12 }}>
<p>{t('用户名')}: {data.username}</p>
<p>{t('余额')}: {renderQuota(data.quota)}</p>
<p>{t('已用额度')}{renderQuota(data.used_quota)}</p>
<p>{t('请求次数')}{renderNumber(data.request_count)}</p>
2024-03-23 21:24:39 +08:00
</div>
),
centered: true,
2024-03-15 16:05:33 +08:00
});
} else {
showError(message);
}
};
2023-11-08 01:14:12 +08:00
2024-03-15 16:05:33 +08:00
const setLogsFormat = (logs) => {
let expandDatesLocal = {};
2024-03-15 16:05:33 +08:00
for (let i = 0; i < logs.length; i++) {
logs[i].timestamp2string = timestamp2string(logs[i].created_at);
logs[i].key = i;
let other = getLogOther(logs[i].other);
let expandDataLocal = [];
if (isAdmin()) {
// let content = '渠道:' + logs[i].channel;
// if (other.admin_info !== undefined) {
// if (
// other.admin_info.use_channel !== null &&
// other.admin_info.use_channel !== undefined &&
// other.admin_info.use_channel !== ''
// ) {
// // channel id array
// let useChannel = other.admin_info.use_channel;
// let useChannelStr = useChannel.join('->');
// content = `渠道:${useChannelStr}`;
// }
// }
// expandDataLocal.push({
// key: '渠道重试',
// value: content,
// })
}
2024-11-07 16:12:09 +08:00
if (other?.ws || other?.audio) {
expandDataLocal.push({
key: t('语音输入'),
value: other.audio_input,
});
expandDataLocal.push({
key: t('语音输出'),
value: other.audio_output,
});
expandDataLocal.push({
key: t('文字输入'),
value: other.text_input,
});
expandDataLocal.push({
key: t('文字输出'),
value: other.text_output,
});
}
expandDataLocal.push({
key: t('日志详情'),
value: logs[i].content,
});
if (logs[i].type === 2) {
2024-11-07 16:12:09 +08:00
let content = '';
if (other?.ws || other?.audio) {
content = renderAudioModelPrice(
other.text_input,
other.text_output,
other.model_ratio,
other.model_price,
other.completion_ratio,
other.audio_input,
other.audio_output,
other?.audio_ratio,
other?.audio_completion_ratio,
other.group_ratio,
);
} else {
content = renderModelPrice(
logs[i].prompt_tokens,
logs[i].completion_tokens,
other.model_ratio,
other.model_price,
other.completion_ratio,
other.group_ratio,
2024-11-07 16:12:09 +08:00
);
}
expandDataLocal.push({
key: t('计费过程'),
value: content,
});
}
expandDatesLocal[logs[i].key] = expandDataLocal;
}
setExpandData(expandDatesLocal);
2024-03-15 16:05:33 +08:00
setLogs(logs);
};
2024-03-15 16:05:33 +08:00
const loadLogs = async (startIdx, pageSize, logType = 0) => {
setLoading(true);
2024-03-15 16:05:33 +08:00
let url = '';
let localStartTimestamp = Date.parse(start_timestamp) / 1000;
let localEndTimestamp = Date.parse(end_timestamp) / 1000;
if (isAdminUser) {
url = `/api/log/?p=${startIdx}&page_size=${pageSize}&type=${logType}&username=${username}&token_name=${token_name}&model_name=${model_name}&start_timestamp=${localStartTimestamp}&end_timestamp=${localEndTimestamp}&channel=${channel}`;
} else {
url = `/api/log/self/?p=${startIdx}&page_size=${pageSize}&type=${logType}&token_name=${token_name}&model_name=${model_name}&start_timestamp=${localStartTimestamp}&end_timestamp=${localEndTimestamp}`;
}
2024-08-01 18:06:25 +08:00
url = encodeURI(url);
2024-03-15 16:05:33 +08:00
const res = await API.get(url);
const { success, message, data } = res.data;
if (success) {
2024-08-11 11:25:32 +08:00
const newPageData = data.items;
setActivePage(data.page);
setPageSize(data.page_size);
setLogCount(data.total);
setLogsFormat(newPageData);
2024-03-15 16:05:33 +08:00
} else {
showError(message);
}
setLoading(false);
};
2024-03-23 21:24:39 +08:00
const handlePageChange = (page) => {
2024-03-15 16:05:33 +08:00
setActivePage(page);
2024-08-11 11:25:32 +08:00
loadLogs(page, pageSize, logType).then((r) => {});
2024-03-15 16:05:33 +08:00
};
2024-03-15 16:05:33 +08:00
const handlePageSizeChange = async (size) => {
localStorage.setItem('page-size', size + '');
setPageSize(size);
setActivePage(1);
2024-08-11 11:25:32 +08:00
loadLogs(activePage, size)
2024-03-15 16:05:33 +08:00
.then()
.catch((reason) => {
showError(reason);
});
};
2024-03-15 15:07:14 +08:00
2024-04-03 23:57:49 +08:00
const refresh = async () => {
2024-03-15 16:05:33 +08:00
setActivePage(1);
2024-08-01 17:39:18 +08:00
handleEyeClick();
2024-08-11 11:25:32 +08:00
await loadLogs(activePage, pageSize, logType);
2024-03-15 16:05:33 +08:00
};
2024-03-15 16:05:33 +08:00
const copyText = async (text) => {
if (await copy(text)) {
showSuccess('已复制:' + text);
} else {
Modal.error({ title: '无法复制到剪贴板,请手动复制', content: text });
2023-11-09 17:08:32 +08:00
}
2024-03-15 16:05:33 +08:00
};
2023-11-09 17:08:32 +08:00
2024-03-15 16:05:33 +08:00
useEffect(() => {
2024-03-23 21:24:39 +08:00
const localPageSize =
parseInt(localStorage.getItem('page-size')) || ITEMS_PER_PAGE;
2024-03-15 16:05:33 +08:00
setPageSize(localPageSize);
2024-08-11 11:25:32 +08:00
loadLogs(activePage, localPageSize)
2024-03-15 16:05:33 +08:00
.then()
.catch((reason) => {
showError(reason);
});
handleEyeClick();
2024-03-15 16:05:33 +08:00
}, []);
2024-03-15 15:07:14 +08:00
const expandRowRender = (record, index) => {
return <Descriptions data={expandData[record.key]} />;
};
2024-03-23 21:24:39 +08:00
return (
<>
<Layout>
<Header>
<Spin spinning={loadingStat}>
<Space>
<Tag color='green' size='large' style={{ padding: 15 }}>
{t('总消耗额度')}: {renderQuota(stat.quota)}
</Tag>
<Tag color='blue' size='large' style={{ padding: 15 }}>
RPM: {stat.rpm}
</Tag>
<Tag color='purple' size='large' style={{ padding: 15 }}>
TPM: {stat.tpm}
</Tag>
</Space>
2024-03-23 21:24:39 +08:00
</Spin>
</Header>
<Form layout='horizontal' style={{ marginTop: 10 }}>
<>
<Form.Input
field='token_name'
label={t('令牌名称')}
2024-03-23 21:24:39 +08:00
style={{ width: 176 }}
value={token_name}
placeholder={t('可选值')}
2024-03-23 21:24:39 +08:00
name='token_name'
onChange={(value) => handleInputChange(value, 'token_name')}
/>
<Form.Input
field='model_name'
label={t('模型名称')}
2024-03-23 21:24:39 +08:00
style={{ width: 176 }}
value={model_name}
placeholder={t('可选值')}
2024-03-23 21:24:39 +08:00
name='model_name'
onChange={(value) => handleInputChange(value, 'model_name')}
/>
<Form.DatePicker
field='start_timestamp'
label={t('起始时间')}
2024-03-23 21:24:39 +08:00
style={{ width: 272 }}
initValue={start_timestamp}
value={start_timestamp}
type='dateTime'
name='start_timestamp'
onChange={(value) => handleInputChange(value, 'start_timestamp')}
/>
<Form.DatePicker
field='end_timestamp'
fluid
label={t('结束时间')}
2024-03-23 21:24:39 +08:00
style={{ width: 272 }}
initValue={end_timestamp}
value={end_timestamp}
type='dateTime'
name='end_timestamp'
onChange={(value) => handleInputChange(value, 'end_timestamp')}
/>
{isAdminUser && (
<>
<Form.Input
field='channel'
label={t('渠道 ID')}
2024-03-23 21:24:39 +08:00
style={{ width: 176 }}
value={channel}
placeholder={t('可选值')}
2024-03-23 21:24:39 +08:00
name='channel'
onChange={(value) => handleInputChange(value, 'channel')}
/>
<Form.Input
field='username'
label={t('用户名称')}
2024-03-23 21:24:39 +08:00
style={{ width: 176 }}
value={username}
placeholder={t('可选值')}
2024-03-23 21:24:39 +08:00
name='username'
onChange={(value) => handleInputChange(value, 'username')}
/>
</>
)}
<Button
label={t('查询')}
type='primary'
htmlType='submit'
className='btn-margin-right'
onClick={refresh}
loading={loading}
style={{ marginTop: 24 }}
>
{t('查询')}
</Button>
2024-08-11 11:25:32 +08:00
<Form.Section></Form.Section>
2024-03-23 21:24:39 +08:00
</>
</Form>
<div style={{marginTop:10}}>
<Select
defaultValue='0'
style={{ width: 120 }}
onChange={(value) => {
setLogType(parseInt(value));
loadLogs(0, pageSize, parseInt(value));
}}
>
<Select.Option value='0'>{t('全部')}</Select.Option>
<Select.Option value='1'>{t('充值')}</Select.Option>
<Select.Option value='2'>{t('消费')}</Select.Option>
<Select.Option value='3'>{t('管理')}</Select.Option>
<Select.Option value='4'>{t('系统')}</Select.Option>
</Select>
</div>
2024-03-23 21:24:39 +08:00
<Table
style={{ marginTop: 5 }}
columns={columns}
expandedRowRender={expandRowRender}
expandRowByClick={true}
2024-08-11 11:25:32 +08:00
dataSource={logs}
rowKey="key"
2024-03-23 21:24:39 +08:00
pagination={{
currentPage: activePage,
pageSize: pageSize,
total: logCount,
pageSizeOpts: [10, 20, 50, 100],
showSizeChanger: true,
onPageSizeChange: (size) => {
2024-08-11 11:25:32 +08:00
handlePageSizeChange(size);
2024-03-23 21:24:39 +08:00
},
onPageChange: handlePageChange,
}}
/>
</Layout>
</>
);
};
export default LogsTable;