import React from 'react'; import './VerifiedDomainBadge.css'; /** * Displays verified domain badge on user profile * @param {Object} props * @param {string} props.verifiedDomain - The verified domain name * @param {string} props.verificationType - Type of verification (dns or blockchain) * @param {Date} props.verifiedAt - When the domain was verified */ export default function VerifiedDomainBadge({ verifiedDomain, verificationType = 'dns', verifiedAt }) { if (!verifiedDomain) return null; return (
{verifiedDomain}
{verificationType === 'blockchain' && ( ⛓️ )} {verifiedAt && (
Verified {new Date(verifiedAt).toLocaleDateString()}
)}
); }