import PropTypes from 'prop-types'; import { ReactComponent as ArrowRightAltIcon } from '@material-symbols/svg-600/outlined/arrow_right_alt.svg'; import { ReactComponent as CheckIcon } from '@material-symbols/svg-600/outlined/done.svg'; import { Icon } from 'mastodon/components/icon'; const Step = ({ label, description, icon, iconComponent, completed, onClick, href }) => { const content = ( <>
{label}

{description}

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