import React from "react"; import Alert from "@mui/material/Alert"; import Button from "@mui/material/Button"; import Card from "@mui/material/Card"; class ScanDetail extends React.Component { render() { return (
#{this.props._id}

General info

Domain {this.props.domain}
Endpoint {`${this.props.ip}:${this.props.port}`}
Hostname {this.props.ptr}
Owner {this.props.whois_description}
ASN {`${this.props.asn} (${this.props.asn_country_code})`}
Abuse mail {this.props.abuse_mail}
{this.props.description && ( <>
{this.props.description} )}

Custom info

Latest scan:     {this.props.timestamp_in_utc}

{this.props.result .sort((a, b) => (a.vulnerable ? -1 : 1)) .map(cve => ( ))}
); } } function Custom(props) { return ( {Object.entries(props).map( ([key, { data, display_name, description }]) => ( ) )}
); } function CustomElement(props) { return ( {props.display_name} {props.data.toString()} {props.description} ); } function CVE(props) { return ( {props.cve} ); } export default ScanDetail;