import * as React from "react" import { cn } from "../ui/utils" import type { LucideIcon } from "lucide-react" interface InsightCardProps extends React.ComponentProps<"div"> { icon?: LucideIcon title: string description: string tags?: { label: string; icon?: LucideIcon }[] action?: React.ReactNode variant?: "default" | "highlighted" } function InsightCard({ icon: Icon, title, description, tags, action, variant = "default", className, ...props }: InsightCardProps) { return (
{Icon && (
)}

{title}

{description}

{tags && tags.length > 0 && (
{tags.map((tag, i) => ( {tag.icon && } {tag.label} ))}
)} {action}
) } export { InsightCard } export type { InsightCardProps }