Files
gpustack-ui/src/pages/dashboard/components/usage-inner/top-user.tsx
T
2025-06-27 17:26:34 +08:00

25 lines
537 B
TypeScript

import CardWrapper from '@/components/card-wrapper';
import HBar from '@/components/echarts/h-bar';
import React from 'react';
interface TopUserProps {
userData: { name: string; value: number }[];
topUserList: string[];
}
const TopUser: React.FC<TopUserProps> = (props) => {
const { userData, topUserList } = props;
return (
<CardWrapper>
<HBar
seriesData={userData}
xAxisData={topUserList}
height={440}
maxItems={10}
></HBar>
</CardWrapper>
);
};
export default TopUser;