blob: f8d5ae7702907f63c652953282cb66c716af80d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import React from "react";
import styled from "../colorscheme/styled";
const Wrapper = styled.p`
border-top: 1px solid gray;
background-color: ${({ theme }) => theme.consoleErrorBackground};
color: ${({ theme }) => theme.consoleErrorForeground};
font-weight: bold;
`;
const ErrorMessage: React.FC = ({ children }) => {
return <Wrapper role="alert">{children}</Wrapper>;
};
export default ErrorMessage;
|