import React from "react"; import Alert from "@mui/material/Alert"; import Card from "@mui/material/Card"; class ObjectComponent extends React.Component { render() { return (
#{this.props._id}
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}
Scan finished at {this.props.timestamp_in_utc}
{this.props.user_presentation.description && ( {this.props.user_presentation.description} )}
); } } function GenericTable(props) { return ( {Object.entries(props.data).map(([key, value]) => { return ( ); })}
{key} {value}
); } function UserPresentation(props) { return (
{Object.entries(props.data).map( ([key, { data, display_name, description }]) => ( ) )}
); } function UserPresentationElement(props) { return ( {props.display_name}: {props.data.toString()} {props.description && ( {props.description} )} ); } export default ObjectComponent;