2022-10-13 09:00:44 -07:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { Stack } from 'soapbox/components/ui';
|
|
|
|
|
|
|
|
import { randomIntFromInterval, generateText } from '../utils';
|
|
|
|
|
|
|
|
export default ({ limit }: { limit: number }) => {
|
|
|
|
const trend = randomIntFromInterval(6, 3);
|
|
|
|
const stat = randomIntFromInterval(10, 3);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
{new Array(limit).fill(undefined).map((_, idx) => (
|
2023-02-06 09:18:49 -08:00
|
|
|
<Stack key={idx} className='text-primary-200 dark:text-primary-700 animate-pulse'>
|
2022-10-13 09:00:44 -07:00
|
|
|
<p>{generateText(trend)}</p>
|
|
|
|
<p>{generateText(stat)}</p>
|
|
|
|
</Stack>
|
|
|
|
))}
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|