2025-11-28 14:03:20 +08:00
|
|
|
import { t } from 'i18next';
|
|
|
|
|
import { HomeIcon } from '../svg-icon';
|
|
|
|
|
|
|
|
|
|
export enum EmptyType {
|
|
|
|
|
Data = 'data',
|
|
|
|
|
SearchData = 'search-data',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export enum EmptyCardType {
|
|
|
|
|
Agent = 'agent',
|
|
|
|
|
Dataset = 'dataset',
|
|
|
|
|
Chat = 'chat',
|
|
|
|
|
Search = 'search',
|
2025-12-08 10:17:56 +08:00
|
|
|
Memory = 'memory',
|
2025-11-28 14:03:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const EmptyCardData = {
|
|
|
|
|
[EmptyCardType.Agent]: {
|
|
|
|
|
icon: <HomeIcon name="agents" width={'24'} />,
|
|
|
|
|
title: t('empty.agentTitle'),
|
2025-12-08 10:17:56 +08:00
|
|
|
notFound: t('empty.notFoundAgent'),
|
2025-11-28 14:03:20 +08:00
|
|
|
},
|
|
|
|
|
[EmptyCardType.Dataset]: {
|
|
|
|
|
icon: <HomeIcon name="datasets" width={'24'} />,
|
|
|
|
|
title: t('empty.datasetTitle'),
|
2025-12-08 10:17:56 +08:00
|
|
|
notFound: t('empty.notFoundDataset'),
|
2025-11-28 14:03:20 +08:00
|
|
|
},
|
|
|
|
|
[EmptyCardType.Chat]: {
|
|
|
|
|
icon: <HomeIcon name="chats" width={'24'} />,
|
|
|
|
|
title: t('empty.chatTitle'),
|
2025-12-08 10:17:56 +08:00
|
|
|
notFound: t('empty.notFoundChat'),
|
2025-11-28 14:03:20 +08:00
|
|
|
},
|
|
|
|
|
[EmptyCardType.Search]: {
|
|
|
|
|
icon: <HomeIcon name="searches" width={'24'} />,
|
|
|
|
|
title: t('empty.searchTitle'),
|
2025-12-08 10:17:56 +08:00
|
|
|
notFound: t('empty.notFoundSearch'),
|
|
|
|
|
},
|
|
|
|
|
[EmptyCardType.Memory]: {
|
|
|
|
|
icon: <HomeIcon name="memory" width={'24'} />,
|
|
|
|
|
title: t('empty.memoryTitle'),
|
|
|
|
|
notFound: t('empty.notFoundMemory'),
|
2025-11-28 14:03:20 +08:00
|
|
|
},
|
|
|
|
|
};
|