import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Button from '../../ui/button'; import Box from '../../ui/box'; import Typography from '../../ui/typography'; import { AlignItems, DISPLAY, FLEX_WRAP, BLOCK_SIZES, JustifyContent, } from '../../../helpers/constants/design-system'; const OnRampItem = ({ className, logo, title, text, buttonLabel, onButtonClick, hide = false, }) => { if (hide) { return null; } return ( {logo} {title} {text} ); }; OnRampItem.propTypes = { className: PropTypes.string, logo: PropTypes.node.isRequired, title: PropTypes.string.isRequired, text: PropTypes.string.isRequired, buttonLabel: PropTypes.string.isRequired, onButtonClick: PropTypes.func.isRequired, hide: PropTypes.bool, }; export default OnRampItem;