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

24 lines
653 B

import React from 'react'
import classNames from 'classnames';
interface Props {
children?: React.ReactNode;
onClick: () => void;
}
export const PictureText: React.FC<Props> = ({onClick, children}) => {
return(
<div className={'pictureText_main'}>
<Image
className = {'pictureText_img'}
src={props.src}
alt={props.alt}
width={props.width}
height={props.height}
/>
<div className={'pictureText_box'} >
<p className={'pictureText_text'}>{props.children}</p>
</div>
</div>
)
}