import QueueAnim from 'rc-queue-anim'; import React from 'react'; import { globalTheme, ThemeData } from '../../../utils/theme'; import SRank from './styled'; interface EventListProps { size?: Record; theme?: ThemeData; [key: string]: any; } export default function EventList(props: EventListProps) { const { data = [], count = 3, size, textStyle, marginBottom = 1, theme, } = props; const height = (size && size.height) || 200; const width = (size && size.width) || 300; const colorList = theme ? theme : globalTheme; return ( {data .slice(0, count) .map((item: Record, index: number) => (
TOP0{index + 1}
{' '} {item.label}
))}
); }