/* * @Author: ZhaoYing * @Date: 2026-02-03 17:28:07 * @Last Modified by: ZhaoYing * @Last Modified time: 2026-02-11 14:57:55 */ /** * Top Card List Component * Displays dashboard summary cards for key metrics * Shows total memory capacity, applications, knowledge bases, and API calls */ import { type FC } from 'react' import { useTranslation } from 'react-i18next' import clsx from 'clsx'; import { Flex } from 'antd'; import type { DashboardData } from '../index' /** Card configuration with styling */ const list = [ { key: 'total_memory', background: 'rb:bg-[url("@/assets/images/home/totalMemoryCapacity.png")] rb:bg-cover rb:bg-no-repeat', }, { key: 'total_app', }, { key: 'total_knowledge', }, { key: 'total_api_call', }, ] /** * Component props * @param data - Dashboard statistics data */ const TopCardList: FC<{data?: DashboardData}> = ({ data }) => { const { t } = useTranslation() return (