mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-24 20:00:22 +00:00
24 lines
415 B
TypeScript
24 lines
415 B
TypeScript
import { skeleton } from '../../utils';
|
|
|
|
const Footer = ({
|
|
content,
|
|
loading,
|
|
}: {
|
|
content: string | null;
|
|
loading: boolean;
|
|
}) => {
|
|
if (!content) return null;
|
|
|
|
return (
|
|
<div className="card-body">
|
|
{loading ? (
|
|
skeleton({ widthCls: 'w-52', heightCls: 'h-6' })
|
|
) : (
|
|
<div dangerouslySetInnerHTML={{ __html: content }} />
|
|
)}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Footer;
|