mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-14 21:23:40 +01:00
19 lines
364 B
TypeScript
19 lines
364 B
TypeScript
import classNames from 'classnames';
|
|
|
|
interface Props {
|
|
children: string;
|
|
}
|
|
|
|
export function FormattedError({ children }: Props) {
|
|
return (
|
|
<pre
|
|
className={classNames(
|
|
'text-sm select-auto cursor-text bg-gray-100 p-3 rounded',
|
|
'whitespace-normal border border-red-500 border-dashed',
|
|
)}
|
|
>
|
|
{children}
|
|
</pre>
|
|
);
|
|
}
|