"use client" import { ExternalLink } from "lucide-react" import type { ArticleGroup, Hit } from "@/lib/types" import { TileCard } from "@/components/TileCard" import { Badge } from "@/components/ui/badge" interface ResultGroupProps { group: ArticleGroup selectedHits: Set onSelectHit: (hit: Hit) => void onClickHit: (hit: Hit) => void } export function ResultGroup({ group, selectedHits, onSelectHit, onClickHit, }: ResultGroupProps) { return (
{/* Header */}

{group.title}

{group.hits.length} tile{group.hits.length !== 1 ? "s" : ""} Open article
{/* Horizontal scrollable row of tiles */}
{group.hits.map((hit) => ( ))}
) }