Email Infrastructure
Sending domains, DNS health, suppressions
{/* Network Stats */}
{[
{ label: 'Sends Today', value: stats?.sends_today ?? 0, color: 'text-blue-400' },
{ label: 'Sends This Month', value: stats?.sends_month ?? 0, color: 'text-blue-400' },
{ label: 'Total Suppressions', value: stats?.total_suppressions ?? 0, color: 'text-red-400' },
{ label: 'Blacklisted Domains', value: stats?.blacklisted ?? 0, color: 'text-red-400' },
].map(c => (
))}
{/* Per-site property cards */}
{bySite.map(({ site, domains: siteDomains }) => {
const primary = siteDomains.find((d: any) => d.is_primary);
const suppCount = stats?.suppressions_by_site?.[site] ?? 0;
return (
{site}
Manage →
{primary?.domain ?? 'No primary'}
{primary && (
{primary.dns_fully_verified ? 'DNS OK' : 'DNS Pending'}
)}
{siteDomains.length} domains
{siteDomains.filter((d: any) => d.is_active).length} active
{suppCount} suppressions
{primary && (
)}
);
})}
{/* Quick links */}
{[
{ label: 'Sending Domains', href: '/admin/email/domains' },
{ label: 'Suppressions', href: '/admin/email/suppressions' },
{ label: 'Send Log', href: '/admin/email/send-log' },
].map(l => (
{l.label}
))}