import { Icons } from './Icons.js'
import { Octicon } from './Octicon.jsx'
interface Props {
title: string,
titleIcon?: keyof typeof Octicon | keyof typeof Icons,
link: string,
icon?: keyof typeof Icons,
desc?: string,
}
export function ToolCard({ title, desc, link, icon, titleIcon }: Props) {
if (icon || desc) {
return
{icon && Icons[icon]}
}
return
}
function ToolHead({ title, titleIcon }: Pick) {
return
{title}
{titleIcon && (titleIcon in Octicon ? (Octicon as any)[titleIcon] : (Icons as any)[titleIcon])}
}