import Link from "next/link"; import Icon from "@/components/Icon"; import type { SearchTab } from "@/lib/types"; import { cn } from "@/lib/utils"; const TABS: Array<{ key: SearchTab; label: string; ariaLabel?: string }> = [ { key: "all", label: "All" }, { key: "images", label: "Images", ariaLabel: "Images and Photos" }, { key: "news", label: "News" }, { key: "videos", label: "Videos" }, ]; export default function SearchTabs({ q, active }: { q: string; active: SearchTab }) { const qs = `q=${encodeURIComponent(q)}`; return (