import React from 'react'; import Link from '@docusaurus/Link'; import Masonry from 'react-masonry-component'; import './index.css'; interface ILink { href: string; label: string; } interface IOverviewNavCard { label: string; description: string; items: ILink[]; type: string; href?: string; } const OverviewNavCard: React.FC = ({ label, description, type, items, href: categoryHref, }) => (

{label}

{description}

); const OverviewNav = ({ cards, ret }) => (
{ret?.()} {cards?.map(card => { if (card.label === '概览') { return null; } else { return ; } })}
); export default OverviewNav;