2018-11-04 06:22:46 +00:00
|
|
|
import React from 'react';
|
2019-01-23 06:34:39 +00:00
|
|
|
import cn from 'classnames';
|
2018-11-04 06:22:46 +00:00
|
|
|
|
2019-01-23 06:34:39 +00:00
|
|
|
const Button = ({ children, category, className, ...props }) => (
|
|
|
|
<button
|
|
|
|
className={cn(`button-${category}`, className)}
|
|
|
|
type="button"
|
|
|
|
{...props}
|
|
|
|
>
|
2018-11-04 06:22:46 +00:00
|
|
|
{children}
|
|
|
|
</button>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default Button;
|