import React from 'react'; import PropTypes from 'prop-types'; import Button from '../../ui/button'; import Box from '../../ui/box'; import Typography from '../../ui/typography'; import { COLORS, FRACTIONS } from '../../../helpers/constants/design-system'; const OnRampItem = ({ logo, title, text, buttonLabel, onButtonClick, hide = false, }) => { if (hide) { return null; } return ( {logo} {title} {text} ); }; OnRampItem.propTypes = { 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;