dispatch/client/js/components/ui/Button.js

15 lines
276 B
JavaScript
Raw Normal View History

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