import { cn } from "@/lib/utils"; import { latrGatewayErrorForDisplay } from "@/lib/latrGatewayErrors"; type ListColumnErrorProps = { error: unknown; fallbackTitle?: string; className?: string; }; /** Narrow-column error panel with headline + optional detail. */ export function ListColumnError({ error, fallbackTitle = "Something went wrong", className, }: ListColumnErrorProps) { const { headline, detail } = latrGatewayErrorForDisplay(error, fallbackTitle); return (
{headline}
{detail ? ({detail}
) : null}