2019-07-08 22:54:58 +02:00
|
|
|
|
// @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 (
|
2019-08-02 17:11:31 +02:00
|
|
|
|
<Page>
|
2019-07-08 22:54:58 +02:00
|
|
|
|
{uris && uris.length ? (
|
|
|
|
|
<div className="card">
|
|
|
|
|
<ClaimList
|
|
|
|
|
header={<h1>{__('Your Blocked Channels')}</h1>}
|
|
|
|
|
persistedStorageKey="block-list-published"
|
|
|
|
|
uris={uris}
|
|
|
|
|
defaultSort
|
2019-08-02 02:56:25 +02:00
|
|
|
|
showHiddenByUser
|
2019-07-08 22:54:58 +02:00
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
) : (
|
|
|
|
|
<div className="main--empty">
|
|
|
|
|
<section className="card card--section">
|
2019-08-02 17:11:31 +02:00
|
|
|
|
<h2 className="card__title">{__('You aren’t blocking any channels')}</h2>
|
2019-09-06 17:14:17 +02:00
|
|
|
|
<p className="card__subtitle">{__('When you block a channel, all content from that channel will be hidden.')}</p>
|
2019-07-08 22:54:58 +02:00
|
|
|
|
</section>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</Page>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default ListBlocked;
|