mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 03:47:59 +08:00
14 lines
288 B
JavaScript
14 lines
288 B
JavaScript
import React from 'react';
|
|
import styles from './Alert.css';
|
|
|
|
const Alert = ({ cStyle = 'error', children, className, ...props }) => (
|
|
<div
|
|
className={`${styles.alert} ${styles[`alert--${cStyle}`]} ${className}`}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
|
|
export default Alert;
|