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/ButtonImg_20220529001348.tsx

16 lines
418 B

import React from 'react';
import classNames from 'classnames';
interface Props {
img: string;
children?: React.ReactNode;
onClick: () => void;
}
export const ButtonImg: React.FC<Props> = ({onClick, img, children}) => {
return(
<div className = {'button_img_main'}>
<button className={classNames('button_img ', img )} onClick={onClick}>{children}</button>
</div>
)
}