mirror of
https://github.com/astral-sh/ruff
synced 2026-01-23 06:20:55 -05:00
## Summary This PR extends the Red Knot playground by adding configuration support by adding a `knot.json` file. <img width="1679" alt="Screenshot 2025-03-23 at 21 12 16" src="https://github.com/user-attachments/assets/81ff1588-a07a-4847-97d8-61250aa2feda" />
16 lines
408 B
TypeScript
16 lines
408 B
TypeScript
export function ErrorMessage({ children }: { children: string }) {
|
|
return (
|
|
<div
|
|
className="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4"
|
|
role="alert"
|
|
>
|
|
<p className="font-bold">Error</p>
|
|
<p className="block sm:inline">
|
|
{children.startsWith("Error: ")
|
|
? children.slice("Error: ".length)
|
|
: children}
|
|
</p>
|
|
</div>
|
|
);
|
|
}
|