lbry-desktop/ui/component/abandonedChannelPreview/view.jsx

44 lines
1.4 KiB
React
Raw Permalink Normal View History

// @flow
import React from 'react';
import classnames from 'classnames';
import ChannelThumbnail from 'component/channelThumbnail';
import { parseURI } from 'util/lbryURI';
import ChannelBlockButton from 'component/channelBlockButton';
import ChannelMuteButton from 'component/channelMuteButton';
import SubscribeButton from 'component/subscribeButton';
type Props = {
uri: string,
type: string,
};
function AbandonedChannelPreview(props: Props) {
const { uri, type } = props;
const { channelName } = parseURI(uri);
return (
2020-02-05 19:01:07 +01:00
<li className={classnames('claim-preview__wrapper', 'claim-preview__wrapper--notice')}>
<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>
</div>
<div className="claim-preview__actions">
<div className="section__actions">
<ChannelBlockButton uri={uri} />
<ChannelMuteButton uri={uri} />
<SubscribeButton uri={uri} />
</div>
</div>
</div>
</div>
</li>
);
}
export default AbandonedChannelPreview;