lbry-desktop/ui/component/claimPreview/claim-preview-loading.jsx

39 lines
1.1 KiB
React
Raw Normal View History

// @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-14 23:27:16 +02:00
className={classnames('placeholder claim-preview__wrapper', {
'claim-preview__wrapper--channel': isChannel && type !== 'inline',
'claim-preview__wrapper--inline': type === 'inline',
'claim-preview__wrapper--small': type === 'small',
})}
>
<div className={classnames('claim-preview', { 'claim-preview--large': type === 'large' })}>
2022-04-14 23:27:16 +02:00
<div className="media__thumb" />
<div className="placeholder__wrapper">
2022-04-14 23:27:16 +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>
</div>
</div>
</li>
);
}
export default ClaimPreviewLoading;