import { Loader2, Mail } from "lucide-react"; import { Link } from "react-router-dom"; import { Card, PageHeader } from "@/client/components/ui"; import type { AdminInbox } from "@/client/lib/api"; interface PermanentInboxListProps { inboxes: AdminInbox[]; loading: boolean; } export function PermanentInboxList({ inboxes, loading }: PermanentInboxListProps) { return ( } heading="Available addresses" /> {loading ? (

Loading permanent inboxes...

) : null} {!loading && inboxes.length === 0 ? (

No permanent inboxes yet. They are created automatically when a domain is added.

) : null}
{inboxes.map((inbox) => ( {inbox.localPart} {inbox.emailCount} email{inbox.emailCount !== 1 ? "s" : ""} {inbox.domain} {inbox.address} ))}
); }