Files
yaak/src-web/components/core/FormattedError.tsx
2024-01-28 14:39:51 -08:00

20 lines
423 B
TypeScript

import classNames from 'classnames';
interface Props {
children: string;
}
export function FormattedError({ children }: Props) {
console.log('ERROR', children);
return (
<pre
className={classNames(
'w-full text-sm select-auto cursor-text bg-gray-100 p-3 rounded',
'whitespace-pre-wrap border border-red-500 border-dashed overflow-x-auto',
)}
>
{children}
</pre>
);
}