import styled from 'styled-components'; import { TechnologyGroup, Technology } from 'utils/result-processor'; import colors from 'styles/colors'; import Card from 'components/Form/Card'; import Heading from 'components/Form/Heading'; const Outer = styled(Card)` grid-row: span 2 `; const Row = styled.div` display: flex; justify-content: space-between; padding: 0.25rem; &:not(:last-child) { border-bottom: 1px solid ${colors.primary}; } span.lbl { font-weight: bold; } span.val { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } `; const ListRow = (props: { list: Technology[], title: string }) => { const { list, title } = props; return ( <> {title} { list.map((entry: Technology, index: number) => { return ( { entry.Name } )} )} ); } const BuiltWithCard = (props: { data: TechnologyGroup[]}): JSX.Element => { // const { created, updated, expires, nameservers } = whois; return ( Technologies { props.data.map((group: TechnologyGroup) => { return ( ); })} {/* { created && } { updated && } { expires && } { nameservers && } */} ); } export default BuiltWithCard;