import React from 'react';
import { SanitizedCertification } from '../../interfaces/sanitized-config';
import { skeleton } from '../../utils';
const ListItem = ({
year,
name,
body,
link,
}: {
year?: React.ReactNode;
name?: React.ReactNode;
body?: React.ReactNode;
link?: string;
}) => (
{year}
{body}
);
const CertificationCard = ({
certifications,
loading,
}: {
certifications: SanitizedCertification[];
loading: boolean;
}) => {
const renderSkeleton = () => {
const array = [];
for (let index = 0; index < 2; index++) {
array.push(
,
);
}
return array;
};
return (
{loading ? (
skeleton({ widthCls: 'w-32', heightCls: 'h-8' })
) : (
Certification
)}
{loading ? (
renderSkeleton()
) : (
<>
{certifications.map((certification, index) => (
))}
>
)}
);
};
export default CertificationCard;