"use client"; import { useTranslations } from "next-intl"; import Link from "next/link"; import { PlusCircle } from "lucide-react"; import { buttonVariants } from "@/components/ui/button"; import { cn } from "@/lib/utils"; export function RecipesEmptyState({ query, count }: { query: string; count: number }) { const t = useTranslations("recipes"); if (count > 0) { return query ? (
{count} {count !== 1 ? t("resultPlural") : t("resultSingular")} {t("for")} “{query}”
) : null; } return ({t("noMatch")} “{query}”
{t("clearSearch")} > ) : ( <>{t("noRecipes")}