diff options
Diffstat (limited to 'src/components/ErrorCard.tsx')
-rw-r--r-- | src/components/ErrorCard.tsx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/components/ErrorCard.tsx b/src/components/ErrorCard.tsx new file mode 100644 index 0000000..d0bf8c3 --- /dev/null +++ b/src/components/ErrorCard.tsx @@ -0,0 +1,21 @@ +import { Card } from "../webpack/common"; + +interface Props { + style?: React.CSSProperties; + className?: string; +} +export function ErrorCard(props: React.PropsWithChildren<Props>) { + return ( + <Card className={props.className} style={ + { + padding: "2em", + backgroundColor: "#e7828430", + borderColor: "#e78284", + color: "var(--text-normal)", + ...props.style + } + }> + {props.children} + </Card> + ); +} |