2020-02-05 07:14:37 +01:00
|
|
|
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import classnames from 'classnames';
|
|
|
|
import ChannelThumbnail from 'component/channelThumbnail';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { parseURI } from 'util/lbryURI';
|
2021-03-03 19:50:16 +01:00
|
|
|
import ChannelBlockButton from 'component/channelBlockButton';
|
|
|
|
import ChannelMuteButton from 'component/channelMuteButton';
|
2021-04-29 05:44:29 +02:00
|
|
|
import SubscribeButton from 'component/subscribeButton';
|
2020-02-05 07:14:37 +01:00
|
|
|
|
|
|
|
type Props = {
|
|
|
|
uri: string,
|
|
|
|
type: string,
|
|
|
|
};
|
|
|
|
|
|
|
|
function AbandonedChannelPreview(props: Props) {
|
2021-03-03 19:50:16 +01:00
|
|
|
const { uri, type } = props;
|
2020-02-05 07:14:37 +01:00
|
|
|
const { channelName } = parseURI(uri);
|
|
|
|
|
|
|
|
return (
|
2020-02-05 19:01:07 +01:00
|
|
|
<li className={classnames('claim-preview__wrapper', 'claim-preview__wrapper--notice')}>
|
2020-02-05 07:14:37 +01:00
|
|
|
<div className={classnames('claim-preview', { 'claim-preview--large': type === 'large' })}>
|
|
|
|
<ChannelThumbnail uri={uri} />
|
|
|
|
<div className="claim-preview__text">
|
|
|
|
<div className="claim-preview-metadata">
|
|
|
|
<div className="claim-preview-info">
|
|
|
|
<div className="claim-preview__title">{channelName}</div>
|
|
|
|
</div>
|
2020-02-05 19:01:07 +01:00
|
|
|
<div className="media__subtitle">{__(`This channel may have been unpublished.`)}</div>
|
2020-02-05 07:14:37 +01:00
|
|
|
</div>
|
|
|
|
<div className="claim-preview__actions">
|
2021-03-03 19:50:16 +01:00
|
|
|
<div className="section__actions">
|
|
|
|
<ChannelBlockButton uri={uri} />
|
|
|
|
<ChannelMuteButton uri={uri} />
|
2021-04-29 05:44:29 +02:00
|
|
|
<SubscribeButton uri={uri} />
|
2021-03-03 19:50:16 +01:00
|
|
|
</div>
|
2020-02-05 07:14:37 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default AbandonedChannelPreview;
|