import { useOpenGeniText } from "../messages/runtime"; import { cn } from "../lib/cn"; /** * What an error boundary shows when the code it guards failed to download * (see isChunkLoadError). Remounting reuses the failed import, so the only * thing that helps is a reload; every boundary in the chat offers it. * `block` fills a screen or the whole chat; `inline` replaces one item. */ export function LoadFailureNotice({ variant = "inline", className, }: { variant?: "block" | "inline"; className?: string | undefined; }) { const t = useOpenGeniText(); const reload = ( ); if (variant === "block") { return (
{t("loadFailure.didNotLoad")}
{reload}