import { FixedSizeList } from 'react-window';
import { useSpring, animated, config } from '@react-spring/web';
import classNames from 'classnames';
import Empty from 'components/common/Empty';
import { formatLongNumber } from 'lib/format';
import useMessages from 'components/hooks/useMessages';
import styles from './ListTable.module.css';
const ITEM_SIZE = 30;
export function ListTable({
data = [],
title,
metric,
className,
renderLabel,
animate = true,
virtualize = false,
showPercentage = true,
itemCount = 10,
}) {
const { formatMessage, labels } = useMessages();
const getRow = row => {
const { x: label, y: value, z: percent } = row;
return (