import styled from 'styled-components'; import colors from 'styles/colors'; import Card from 'components/Form/Card'; import Heading from 'components/Form/Heading'; import Row, { ListRow, RowProps } from 'components/Form/Row'; const Outer = styled(Card)` .content { max-height: 28rem; overflow-y: auto; } `; const DnsRecordsCard = (props: { dnsRecords: any }): JSX.Element => { const dnsRecords = props.dnsRecords; return ( DNS Records
{ 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;