"use client"; import Link from "next/link"; import { Card } from "@/components/ui/card"; import { AdCreativeMedia } from "@/components/ad-creative-media"; import { ApifyEmptySearch } from "@/components/ads/apify-empty-search"; import { AD_COUNTRIES } from "@/lib/countries"; import { useT } from "@/lib/i18n"; export function AdsClient({ plan, q, niche, mediaType, country, status, matchMode, minDays, language, sort, ads, apifyPlanLimit }: { plan: any; q: string | undefined; niche: string | undefined; mediaType: string | undefined; country: string | undefined; status: string; matchMode: string; minDays: number; language: string | undefined; sort: string; ads: any[]; apifyPlanLimit: number; }) { const t = useT(); return (

Search Meta Adlibrary

{t("ads.description")}

{t("ads.planLabel")}: {plan?.name} · {t("ads.planWarning")}
{t("ads.advancedSearch")}
{["Week's biggest winners", "US winners", "Dropship Ads", "Supplements", "Top Branded"].map((x) => {x})}
{q && } {ads.map((ad: any) => ( {ad.isLocked &&
{t("ads.unlockWinners")}
}
{ad.headline}
Top %{Math.round(ad.rankPercentile || 0)}
{ad.brandPage?.name} · {ad.mediaType} · {ad.daysRunning} {t("ads.days")}

{ad.primaryText}

{ad.countries.join(", ")}
{t("ads.country")}
€{ad.estimatedSpendMin ?? "—"}
{t("ads.minSpend")}
{ad.adScore}
{t("ads.score")}
))}
); }