mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +00:00
25 lines
490 B
JavaScript
25 lines
490 B
JavaScript
import PropTypes from 'prop-types';
|
|
|
|
import { skeleton } from '../../helpers/utils';
|
|
|
|
const Footer = ({ content, loading }) => {
|
|
if (!content) return null;
|
|
|
|
return (
|
|
<div className="card-body">
|
|
{loading ? (
|
|
skeleton({ width: 'w-52', height: 'h-6' })
|
|
) : (
|
|
<div dangerouslySetInnerHTML={{ __html: content }} />
|
|
)}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
Footer.propTypes = {
|
|
content: PropTypes.string,
|
|
loading: PropTypes.bool.isRequired,
|
|
};
|
|
|
|
export default Footer;
|