"use client" import { pbsErrorText, pbsIsKnownError } from "../lib/pbs-messages" import { useT } from "../lib/i18n/provider" // Known application messages are already explained in the active language. // Preserve unrecognized external diagnostics as escaped technical details. export function PBSProblemMessage({ problem, raw, fallback, className = "" }: { problem?: unknown; raw?: string; fallback?: string; className?: string }) { const t = useT() return
{pbsErrorText(problem, t, fallback)}
{raw && !pbsIsKnownError(problem) &&{raw}