import {
Box,
HStack,
Icon,
IconProps,
SimpleGrid,
SimpleGridProps,
Stack,
} from "@chakra-ui/react"
import Link, { LinkProps } from "next/link"
import { LuChevronRight, LuInfo, LuTerminal } from "react-icons/lu"
import {
GatsbyIcon,
NextJsIcon,
RemixIcon,
StackblitzIcon,
ViteIcon,
} from "../framework-icon"
export const CardGroup = (props: SimpleGridProps) => {
return
}
const CardTitleIcon = (props: IconProps) => {
return (
)
}
const iconMap = {
info: ,
terminal: ,
nextjs: ,
remix: ,
vite: ,
gatsby: ,
stackblitz: ,
}
interface CardProps {
href: LinkProps["href"]
icon?: keyof typeof iconMap | React.ReactNode
title: string
children: React.ReactNode
}
export const Card = (props: CardProps) => {
const { icon: iconProp, title, children, href } = props
const icon =
typeof iconProp === "string"
? iconMap[iconProp as keyof typeof iconMap]
: iconProp
return (
{icon && (
{icon}
)}
{title}
{children}
)
}