Files
frontend-app-learning/src/courseware/course/course-exit/Footnote.jsx

20 lines
532 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
const Footnote = ({ icon, text }) => (
<div id="celebration-footnote-wrapper" className="row w-100 mx-0 my-4 justify-content-center">
<p className="text-gray-700">
<FontAwesomeIcon icon={icon} style={{ width: '20px' }} />&nbsp;
{text}
</p>
</div>
);
Footnote.propTypes = {
icon: PropTypes.shape({}).isRequired,
text: PropTypes.node.isRequired,
};
export default Footnote;