import React from "react"; import Accordion from "@mui/material/Accordion"; import AccordionDetails from "@mui/material/AccordionDetails"; import AccordionSummary from "@mui/material/AccordionSummary"; import Alert from "@mui/material/Alert"; import Card from "@mui/material/Card"; import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; 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}
); } } function Details(props) { let content = ( <> {props.user_presentation.description && ( {props.user_presentation.description} )} ); if (props.summary) { return (
} > {content}
); } return content; } 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} )} ); } function GenericTable(props) { return ( {Object.entries(props.data).map(([key, value]) => { return ( ); })}
{key} {value}
); } export default ObjectComponent;