import { LinkCard } from '../link-card'; import styles from './style.module.scss'; export const LinkCardList = ( { items }: { items: React.ComponentProps< typeof LinkCard >[] } ) => { return ( ); }; export const LinkCardListFromMdx = ( { mdxFiles, }: { /** * Object of imported mdx files with metadata. */ mdxFiles: Record< string, { metadata: { permalink: string; title: string; description?: string; frontMatter: { image?: string }; }; assets: { image?: string }; } >; } ) => { const items = Object.values( mdxFiles ).map( ( { metadata, assets } ) => { return { href: metadata.permalink, label: metadata.title, description: metadata.description, image: assets.image ?? metadata.frontMatter.image, }; } ); return ; };