mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 08:32:37 +08:00
14 lines
286 B
JavaScript
14 lines
286 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;
|