blob: 02b1f12930aaa3c831c714e2a529d863f02706cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import { NoticeType } from '@ts/types/app';
import { ReactNode } from 'react';
import styles from './Notice.module.scss';
const Notice = ({
children,
type,
}: {
children: ReactNode;
type: NoticeType;
}) => {
const withModifier = `message--${type}`;
return (
<div className={`${styles.message} ${styles[withModifier]}`}>
{children}
</div>
);
};
export default Notice;
|