import PropTypes from 'prop-types'; import { Check } from 'flavours/glitch/components/check'; import { Icon } from 'flavours/glitch/components/icon'; import ArrowSmallRight from './arrow_small_right'; const Step = ({ label, description, icon, completed, onClick, href }) => { const content = ( <>
{label}

{description}

{completed ? : }
); if (href) { return ( {content} ); } return ( ); }; Step.propTypes = { label: PropTypes.node, description: PropTypes.node, icon: PropTypes.string, completed: PropTypes.bool, href: PropTypes.string, onClick: PropTypes.func, }; export default Step;