2020-12-04 01:10:23 +01:00
|
|
|
// @flow
|
|
|
|
import classnames from 'classnames';
|
|
|
|
import React from 'react';
|
|
|
|
import Empty from 'component/common/empty';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
isChannel: boolean,
|
|
|
|
type: string,
|
2020-12-22 16:16:39 +01:00
|
|
|
message: string,
|
2020-12-04 01:10:23 +01:00
|
|
|
};
|
|
|
|
|
2020-12-22 16:16:39 +01:00
|
|
|
function ClaimPreviewHidden(props: Props) {
|
|
|
|
const { isChannel, type, message } = props;
|
2020-12-04 01:10:23 +01:00
|
|
|
return (
|
|
|
|
<li
|
|
|
|
className={classnames('claim-preview__wrapper', {
|
|
|
|
'claim-preview__wrapper--channel': isChannel && type !== 'inline',
|
|
|
|
'claim-preview__wrapper--inline': type === 'inline',
|
|
|
|
})}
|
|
|
|
>
|
2020-12-22 16:16:39 +01:00
|
|
|
<div
|
|
|
|
className={classnames('claim-preview claim-preview--inactive claim-preview--empty', {
|
|
|
|
'claim-preview--large': type === 'large',
|
|
|
|
})}
|
|
|
|
>
|
2020-12-04 01:10:23 +01:00
|
|
|
<div className="media__thumb" />
|
2020-12-22 16:16:39 +01:00
|
|
|
<Empty text={message} />
|
2020-12-04 01:10:23 +01:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-12-22 16:16:39 +01:00
|
|
|
export default ClaimPreviewHidden;
|