import React from 'react'; import PropTypes from 'prop-types'; import { Link as GatsbyLink } from 'gatsby'; import { Grid, Row, Col } from '@freecodecamp/react-bootstrap'; import './footer.css'; const propTypes = { children: PropTypes.any, external: PropTypes.bool, to: PropTypes.string.isRequired }; const ColHeader = ({ children, ...other }) => (
{children}
); ColHeader.propTypes = propTypes; const Link = ({ children, to, external, ...other }) => { if (!external && (/^\/(?!\/)/).test(to)) { return ( {children} ); } return ( {children} ); }; Link.propTypes = propTypes; function Footer() { return ( ); } Footer.displayName = 'Footer'; export default Footer;