import { ListGroup, ListGroupItem, Button, Collapse, UncontrolledCollapse } from "reactstrap"; import React, { FunctionComponent, Component } from "react"; const AllRules:FunctionComponent = ({ allRules, rules, rawRules, changeTslintState }) => { if(!allRules) { return null; } return ( { allRules.map((allRule: any, index: number) => { if(!allRule) { return null; } let availableButton =
; if(rawRules[allRule.name] !== undefined){ availableButton = ( ) } // if(rawRules[allRule.name]) return (
{ allRule && allRule.name } { availableButton }

{ allRule.description }

) }) } ) } export default AllRules;