20 lines
484 B
TypeScript
20 lines
484 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}></HBar>
|
|
</CardWrapper>
|
|
);
|
|
};
|
|
|
|
export default TopUser;
|