import PropTypes from 'prop-types'; import { Link } from 'react-router'; const outerStyle = { padding: '15px', fontSize: '16px', textDecoration: 'none' }; const iconStyle = { display: 'inline-block', marginRight: '5px' }; const ColumnLink = ({ icon, text, to, href, method, hideOnMobile }) => { if (href) { return ( {text} ); } else { return ( {text} ); } }; ColumnLink.propTypes = { icon: PropTypes.string.isRequired, text: PropTypes.string.isRequired, to: PropTypes.string, href: PropTypes.string, method: PropTypes.string, hideOnMobile: PropTypes.bool }; export default ColumnLink;