import styled from '@emotion/styled';
import type { HostNames } from 'v1-check/utils/result-processor';
import colors from 'v1-check/styles/colors';
import { Card } from 'v1-check/components/Form/Card';
import Heading from 'v1-check/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;