import { LinkIcon, ServerIcon, IdentificationIcon, MapPinIcon } from '@heroicons/react/24/outline'; import { codes } from '@/utils/codes'; export default function ServerInfo({ data }: { data: ServerData }) { const countryName = data.country ? codes[data.country.toLowerCase()] || "N/A" : "N/A"; if (data.isBrowserResource) { return (

Browser Resource

The requested document was obtained from the local computer

); } if (data.isLocal) { return (

Internal Network

IP Address

{data.ip}

); } return (

Host Information

IP Address

{data.ip}

Hostname

{data.hostname}

Location

{countryName}

Org

{data.org}

Search on Censys

); }