import { LinkIcon } from "lucide-react"; import { Button } from "@/components/ui/button"; import { connectorErrorRecovery } from "@/lib/connector-errors.mjs"; /** Render in the affected feature, leaving the rest of the Site usable. */ export function ConnectorError({ error, connectorName, reconnectHref, }: { error: { status: string; message: string }; connectorName: string; reconnectHref: string; }) { const recovery = connectorErrorRecovery(error, connectorName, reconnectHref); return (
{recovery.message}
{recovery.action && ( )}