aboutsummaryrefslogtreecommitdiff
path: root/src/console/components/InfoMessage.tsx
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-04-04 16:44:47 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2021-04-04 17:34:57 +0900
commit2b1079525b86dad45df11e6ad29a89989a6416ab (patch)
tree6bc29a0bce0adc66b6b82d01ecb8eab3e835d8d1 /src/console/components/InfoMessage.tsx
parent20faca581a3b832301c9dca3074b0f61ba163d62 (diff)
Separate Message to InfoMessage and ErrorMessage
Diffstat (limited to 'src/console/components/InfoMessage.tsx')
-rw-r--r--src/console/components/InfoMessage.tsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/console/components/InfoMessage.tsx b/src/console/components/InfoMessage.tsx
new file mode 100644
index 0000000..02ad27d
--- /dev/null
+++ b/src/console/components/InfoMessage.tsx
@@ -0,0 +1,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;