aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Notice/Notice.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Notice/Notice.tsx')
-rw-r--r--src/components/Notice/Notice.tsx20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/components/Notice/Notice.tsx b/src/components/Notice/Notice.tsx
new file mode 100644
index 0000000..c941bf9
--- /dev/null
+++ b/src/components/Notice/Notice.tsx
@@ -0,0 +1,20 @@
+import { ReactNode } from 'react';
+import styles from './Notice.module.scss';
+
+type NoticeType = 'error' | 'info' | 'success' | 'warning';
+
+const Notice = ({
+ children,
+ type,
+}: {
+ children: ReactNode;
+ type: NoticeType;
+}) => {
+ return (
+ <div className={`${styles.message} ${styles[`message--${type}`]}`}>
+ {children}
+ </div>
+ );
+};
+
+export default Notice;