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.
 
 
 
pizza.krasnikov.pro/.history/components/UI/Button_20220518152939.tsx

15 lines
437 B

import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export const Button: React.FC<Props> = (({onClick, align, styles, children}) => {
return(
<div className= {classNames('button_main', align )}>
<button className = {classNames('button', styles )} onClick = {onClick}> {children} </button>
</div>
)
}
Button.propTypes = {
onClick: PropTypes.func,
};