mirror of
https://github.com/wassname/talk.git
synced 2026-07-08 08:32:39 +08:00
14 lines
295 B
JavaScript
14 lines
295 B
JavaScript
import React from 'react';
|
|
import styles from './styles.css';
|
|
|
|
const Button = ({cStyle = 'local', children, className, ...props}) => (
|
|
<button
|
|
className={`${styles.button} ${styles[`type--${cStyle}`]} ${className}`}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</button>
|
|
);
|
|
|
|
export default Button;
|