You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
475 B
17 lines
475 B
import React from 'react';
|
|
import classNames from 'classnames';
|
|
|
|
interface Props {
|
|
align: string;
|
|
styles: string;
|
|
children?: React.ReactNode;
|
|
onClick: () => void;
|
|
}
|
|
|
|
export const Button: React.FC<Props> = ({onClick, align, styles, children}) => {
|
|
return(
|
|
<div className= {classNames('button_main', align )}>
|
|
<button className = {classNames('button', styles )} onClick = {(e) => onClick()}> {children} </button>
|
|
</div>
|
|
)
|
|
} |