import React from 'react';
import classNames from 'classnames';

interface Props {
    align: string;
    styles: string;
    children?: React.ReactNode;
    onClick: (event) => void;
  }

export const Button: React.FC<Props> = ({onClick, align, styles, children}) => {
    return(
        <div className= {classNames('button_main', align )}>
            <button className = {classNames('button', styles )} onClick = {(event) => onClick(event)}> {children} </button>
        </div>
    )
}