An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
refactor: use cn utility for className concatenation
Yoshiki Miura78e3c981b863
diff --git a/components/tool-badge.tsx b/components/tool-badge.tsxindex 564e473b..0d887f38 100644--- a/components/tool-badge.tsx+++ b/components/tool-badge.tsx@@ -2,6 +2,8 @@ import React from 'react'import { Link, Search } from 'lucide-react'+import { cn } from '@/lib/utils'+import { Badge } from './ui/badge'type ToolBadgeProps = {@@ -22,7 +24,7 @@ export const ToolBadge: React.FC<ToolBadgeProps> = ({return (<Badge- className={`inline-flex items-center max-w-full ${className || ''}`}+ className={cn('inline-flex items-center max-w-full', className)}variant={'secondary'}><span className="flex-shrink-0">{icon[tool]}</span>