Improve error display
This commit is contained in:
13
web/app/ui/error-display.tsx
Normal file
13
web/app/ui/error-display.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Stack, Text } from "@mantine/core";
|
||||
import { IconAlertTriangle } from "@tabler/icons-react";
|
||||
|
||||
export default function ErrorDisplay({ error }: { error: string }) {
|
||||
return (
|
||||
<Stack align="center" justify="center" h="100%" m="0" p="0">
|
||||
<Text c="red">
|
||||
<IconAlertTriangle size="3rem" />
|
||||
</Text>
|
||||
<Text c="red">{error}</Text>
|
||||
</Stack>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user