FormattedError

This commit is contained in:
Gregory Schier
2026-03-12 19:48:43 -07:00
parent 77ec87ea17
commit 3c4035097a
7 changed files with 6 additions and 11 deletions

View File

@@ -1,23 +0,0 @@
import classNames from 'classnames';
import type { ReactNode } from 'react';
interface Props {
children: ReactNode;
className?: string;
}
export function FormattedError({ children, className }: Props) {
return (
<pre
className={classNames(
className,
'cursor-text select-auto',
'[&_*]:cursor-text [&_*]:select-auto',
'font-mono text-sm w-full bg-surface-highlight p-3 rounded',
'whitespace-pre-wrap border border-danger border-dashed overflow-x-auto',
)}
>
{children}
</pre>
);
}