import React from 'react';
import { ThemeProps } from './ThemeProps';

export interface ButtonProps extends ThemeProps {
    onClick?: React.FormEventHandler<any>;
}

class Button extends React.Component<ButtonProps, any> {
    public render() {
        const { children, onClick, theme } = this.props;
        return (
            <button className={theme.button} onClick={onClick}>{children}</button>
        );
    }

}

export default Button;
