import React from 'react'; import PropTypes from 'prop-types'; import CardImgWrapper from '../CardImgWrapper'; import Wrapper from './Wrapper'; import Title from './Title'; import Description from './Description'; const Card = ({ abort, error, file, isSmall, isUploading }) => { const newFile = new File([''], 'img.png'); console.log(newFile); return (
Ma photo Ma photo
); }; Card.defaultProps = { abort: () => {}, error: '', file: null, isSmall: false, isUploading: false, }; Card.propTypes = { abort: PropTypes.func, error: PropTypes.string, file: PropTypes.object, isSmall: PropTypes.bool, isUploading: PropTypes.bool, }; export default Card;