2019-07-08 22:54:58 +02:00
|
|
|
|
// @flow
|
|
|
|
|
import React from 'react';
|
|
|
|
|
import ClaimList from 'component/claimList';
|
|
|
|
|
import Page from 'component/page';
|
2020-07-15 15:50:08 +02:00
|
|
|
|
import Card from 'component/common/card';
|
2019-07-08 22:54:58 +02:00
|
|
|
|
|
|
|
|
|
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 ? (
|
2020-07-15 15:50:08 +02:00
|
|
|
|
<Card
|
|
|
|
|
isBodyList
|
2020-08-26 22:28:33 +02:00
|
|
|
|
title={__('Your blocked channels')}
|
2020-08-21 17:49:13 +02:00
|
|
|
|
body={<ClaimList uris={uris} showUnresolvedClaims showHiddenByUser />}
|
2020-01-08 06:04:35 +01:00
|
|
|
|
/>
|
2019-07-08 22:54:58 +02:00
|
|
|
|
) : (
|
|
|
|
|
<div className="main--empty">
|
|
|
|
|
<section className="card card--section">
|
2019-11-22 22:13:00 +01:00
|
|
|
|
<h2 className="card__title card__title--deprecated">{__('You aren’t blocking any channels')}</h2>
|
|
|
|
|
<p className="section__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;
|