import { Badge, BoxProps, Heading, LinkBox, LinkOverlay, Text, VStack, Wrap, WrapItem, } from '@chakra-ui/react' import * as React from 'react' export interface Resource { heading: string type: 'blog' | 'talk' | 'video' description: string url: string author: string tags?: string[] } interface ResourceCardProps extends BoxProps { data: Resource } function ResourceCard(props: ResourceCardProps) { const { data, ...rest } = props const { heading, author, description, url, tags } = data return ( {tags?.map((tag, index) => ( ))} {heading} by {author} {description} ) } export default ResourceCard