import { Card } from 'components/Form/Card'; import Row, { ListRow } from 'components/Form/Row'; const styles = ` grid-row: span 2; .content { max-height: 50rem; overflow-x: hidden; overflow-y: auto; } `; const DnsRecordsCard = (props: { data: any, title: string, actionButtons: any }): JSX.Element => { const dnsRecords = props.data; return (
{ dnsRecords.A && } { dnsRecords.AAAA?.length > 0 && } { dnsRecords.MX?.length > 0 && } { dnsRecords.CNAME?.length > 0 && } { dnsRecords.NS?.length > 0 && } { dnsRecords.PTR?.length > 0 && } { dnsRecords.SOA?.length > 0 && }
); } export default DnsRecordsCard;