An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
'use client'
import type { ComponentFn } from '@json-render/react'
import { type CatalogType, iconMap } from './shared'
export const Heading: ComponentFn<CatalogType, 'Heading'> = ({ props }) => {
const Icon = props.icon ? iconMap[props.icon] : null
return (
<div className="flex items-center gap-2 text-lg font-bold text-foreground">
{Icon && <Icon className="size-5" />}
{props.title}
</div>
)
}