2020-12-04 01:10:23 +01:00
|
|
|
// @flow
|
|
|
|
import classnames from 'classnames';
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
isChannel: boolean,
|
|
|
|
type: string,
|
|
|
|
};
|
|
|
|
|
|
|
|
function ClaimPreviewLoading(props: Props) {
|
|
|
|
const { isChannel, type } = props;
|
|
|
|
return (
|
|
|
|
<li
|
2022-04-17 19:04:56 +02:00
|
|
|
className={classnames('placeholder claim-preview__wrapper', {
|
2020-12-04 01:10:23 +01:00
|
|
|
'claim-preview__wrapper--channel': isChannel && type !== 'inline',
|
|
|
|
'claim-preview__wrapper--inline': type === 'inline',
|
2021-07-23 05:29:15 +02:00
|
|
|
'claim-preview__wrapper--small': type === 'small',
|
2020-12-04 01:10:23 +01:00
|
|
|
})}
|
|
|
|
>
|
|
|
|
<div className={classnames('claim-preview', { 'claim-preview--large': type === 'large' })}>
|
2022-04-17 19:04:56 +02:00
|
|
|
<div className="media__thumb" />
|
2020-12-04 01:10:23 +01:00
|
|
|
<div className="placeholder__wrapper">
|
2022-04-17 19:04:56 +02:00
|
|
|
<div className="claim-preview__title" />
|
|
|
|
<div className="claim-preview__title_b" />
|
|
|
|
<div className="claim-tile__info">
|
|
|
|
<div className="channel-thumbnail" />
|
|
|
|
<div className="claim-tile__about">
|
|
|
|
<div className="media__subtitle" />
|
|
|
|
<div className="media__subtitle_b" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-04 01:10:23 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ClaimPreviewLoading;
|