Adds checking for Blocklists

This commit is contained in:
Alicia Sykes
2023-08-18 16:20:16 +01:00
parent 6b8c50a9aa
commit 519d2f0f79
5 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
import { Card } from 'components/Form/Card';
import Row from 'components/Form/Row';
const BlockListsCard = (props: {data: any, title: string, actionButtons: any }): JSX.Element => {
const blockLists = props.data.blocklists;
return (
<Card heading={props.title} actionButtons={props.actionButtons}>
{ blockLists.map((blocklist: any) => (
<Row
title={blocklist.serverIp}
lbl={blocklist.server}
val={blocklist.isBlocked ? '❌ Blocked' : '✅ Not Blocked'} />
))}
</Card>
);
}
export default BlockListsCard;