in src/theme/DocCard/index.js [72:93]
function CardLink({ item }) {
const getIconElement = () => {
if (images[item.label.toLowerCase()]) {
return <img src={images[item.label.toLowerCase()].default} alt={item.label}
style={{width: '24px', height: '24px'}}/>;
} else {
return isInternalUrl(item.href) ? '📄️' : '🔗';
}
};
const icon = getIconElement();
const doc = useDocById(item.docId ?? undefined);
return (
<CardLayout
href={item.href}
icon={icon}
title={item.label}
description={item.description ?? doc?.description}
/>
);
}