import React from 'react'; import PropTypes from 'prop-types'; import { Checkbox } from '@buffetjs/core'; import Text from '../Text'; import CardImgWrapper from '../CardImgWrapper'; import CardPreview from '../CardPreview'; import Wrapper from './Wrapper'; import Title from './Title'; // TODO - adapt with the real data const Card = ({ checked, id, name, size, small, type, onChange, url }) => { return (
{name} {`${type} - ${size}`}
); }; Card.defaultProps = { checked: false, name: null, onChange: () => {}, size: 0, small: false, type: null, url: null, }; Card.propTypes = { checked: PropTypes.bool, name: PropTypes.string, id: PropTypes.string.isRequired, onChange: PropTypes.func, size: PropTypes.number, small: PropTypes.bool, type: PropTypes.string, url: PropTypes.string, }; export default Card;