aboutsummaryrefslogtreecommitdiff
path: root/src/console/components/InfoMessage.tsx
blob: 02ad27d4b0817cbf4848173913945b647bdb6ee1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import React from "react";
import { styled } from "./ColorSchemeProvider";

const Wrapper = styled.p`
  border-top: 1px solid gray;
  background-color: ${({ theme }) => theme.consoleInfoBackground};
  color: ${({ theme }) => theme.consoleInfoForeground};
  font-weight: normal;
`;

const InfoMessage: React.FC = ({ children }) => {
  return <Wrapper role="status">{children}</Wrapper>;
};

export default InfoMessage;