Files
yaak-mountain-loop/src-web/components/core/FormattedError.tsx
Gregory Schier 392b549646 Deno plugins (#42)
Switch from BoaJS to Deno core
2024-06-07 10:47:41 -07:00

20 lines
466 B
TypeScript

import classNames from 'classnames';
import type { ReactNode } from 'react';
interface Props {
children: ReactNode;
}
export function FormattedError({ children }: Props) {
return (
<pre
className={classNames(
'font-mono text-sm w-full select-auto cursor-text bg-background-highlight-secondary p-3 rounded',
'whitespace-pre-wrap border border-fg-danger border-dashed overflow-x-auto',
)}
>
{children}
</pre>
);
}