import React, { ComponentType, SVGProps } from 'react'; import Link from '@docusaurus/Link'; import cl from 'classnames'; import styles from './index.module.css'; export interface ContentCardProps { title: string; desc?: string; img: string | ComponentType>; href?: string; isSwiper?: boolean; } const ContentCard: React.FC = ({ img: Icon, title, isSwiper = false, href, }) => ( {typeof Icon === 'function' ? ( ) : ( img )} {title} ); export default ContentCard;