import { Card } from 'v1-check/components/Form/Card'; import Heading from 'v1-check/components/Form/Heading'; import Row from 'v1-check/components/Form/Row'; import colors from 'v1-check/styles/colors'; const cardStyles = ` small { margin-top: 1rem; opacity: 0.5; display: block; a { color: ${colors.primary}; } } `; const DnsServerCard = (props: {data: any, title: string, actionButtons: any }): JSX.Element => { const dnsSecurity = props.data; return ( {dnsSecurity.dns.map((dns: any, index: number) => { return (
{ dnsSecurity.dns.length > 1 && DNS Server #{index+1} } { dns.hostname && }
); })} {dnsSecurity.dns.length > 0 && ( * DoH Support is determined by the DNS server's response to a DoH query. Sometimes this gives false negatives, and it's also possible that the DNS server supports DoH but does not respond to DoH queries. If the DNS server does not support DoH, it may still be possible to use DoH by using a DoH proxy. )}
); } export default DnsServerCard;