bigbuffet-rw/app/soapbox/features/placeholder/components/placeholder_card.js

22 lines
645 B
JavaScript
Raw Normal View History

2022-03-21 11:09:01 -07:00
import classNames from 'classnames';
import * as React from 'react';
import { randomIntFromInterval, generateText } from '../utils';
2022-03-21 11:09:01 -07:00
const PlaceholderCard = () => (
<div className={classNames('status-card', {
'animate-pulse': true,
})}
>
<div className='w-2/5 bg-slate-200 rounded-l'>&nbsp;</div>
2022-03-21 11:09:01 -07:00
<div className='w-3/5 p-4 flex flex-col justify-between text-slate-200 break-words'>
<p>{generateText(randomIntFromInterval(5, 25))}</p>
<p>{generateText(randomIntFromInterval(5, 75))}</p>
<p>{generateText(randomIntFromInterval(5, 15))}</p>
</div>
</div>
);
2022-03-21 11:09:01 -07:00
export default React.memo(PlaceholderCard);