import styled from '@emotion/styled'; import type { HostNames } from 'web-check-live/utils/result-processor'; import colors from 'web-check-live/styles/colors'; import { Card } from 'web-check-live/components/Form/Card'; import Heading from 'web-check-live/components/Form/Heading'; const Row = styled.div` display: flex; justify-content: space-between; padding: 0.25rem; &:not(:last-child) { border-bottom: 1px solid ${colors.primary}; } span:first-child { font-weight: bold; } `; const HostListSection = (props: { list: string[], title: string }) => { const { list, title } = props; return ( <> {title} { list.map((entry: string, index: number) => { return ( { entry } )} )} ); } const cardStyles = ` max-height: 50rem; overflow: auto; `; const HostNamesCard = (props: { data: HostNames, title: string, actionButtons: any }): JSX.Element => { const hosts = props.data; return ( { hosts.domains.length > 0 && } { hosts.hostnames.length > 0 && } ); } export default HostNamesCard;