import React from 'react'; import { Link } from 'react-router-dom'; import { KeenIcon } from '@/components'; import { CommonHexagonBadge } from '../common'; interface IHighlightedPostsItem { icon: string; title: string; summary: string; path: string; } interface IHighlightedPostsItems extends Array {} interface IHighlightedPostsProps { posts: IHighlightedPostsItem[]; } const MiscHighlightedPosts = ({ posts }: IHighlightedPostsProps) => { const renderItem = (post: IHighlightedPostsItem, index: number) => { return (
} />
{post.title}

{post.summary}

Learn more
); }; return (
{posts.map((post, index) => { return renderItem(post, index); })}
); }; export { MiscHighlightedPosts, type IHighlightedPostsItem, type IHighlightedPostsItems, type IHighlightedPostsProps };