import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
const ColumnLink = ({ icon, text, to, href, method }) => {
  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,
};
export default ColumnLink;