lbry-desktop/ui/page/listBlocked/view.jsx
2019-11-11 13:27:29 -05:00

37 lines
956 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// @flow
import React from 'react';
import ClaimList from 'component/claimList';
import Page from 'component/page';
type Props = {
uris: Array<string>,
};
function ListBlocked(props: Props) {
const { uris } = props;
return (
<Page>
{uris && uris.length ? (
<div className="card">
<ClaimList
header={<h1>{__('Your Blocked Channels')}</h1>}
persistedStorageKey="block-list-published"
uris={uris}
defaultSort
showHiddenByUser
/>
</div>
) : (
<div className="main--empty">
<section className="card card--section">
<h2 className="card__title">{__('You arent blocking any channels')}</h2>
<p className="card__subtitle">{__('When you block a channel, all content from that channel will be hidden.')}</p>
</section>
</div>
)}
</Page>
);
}
export default ListBlocked;