import Link from "next/link"; import { Prisma } from "@prisma/client"; import { prisma } from "@/lib/db"; import { requireUser } from "@/lib/auth/current-user"; import { Card } from "@/components/ui/card"; export default async function StoresPage({ searchParams }: { searchParams: Promise> }) { await requireUser(); const resolvedSearchParams = await searchParams; const q = resolvedSearchParams.q?.trim(); const niche = resolvedSearchParams.niche; const where: Prisma.StoreWhereInput = {}; if (q) where.OR = [{ name: { contains: q, mode: "insensitive" } }, { domain: { contains: q, mode: "insensitive" } }]; if (niche) where.niche = niche; const stores = await prisma.store.findMany({ where, include: { products: { where: { isBestSeller: true }, take: 2 }, brandPages: { include: { _count: { select: { ads: true } } }, take: 1 } }, orderBy: { estRevenue30dMax: "desc" }, take: 50 }); return (

Explore Stores

Shopify mağazalarını trafik, gelir, niche ve aktif reklam sayısıyla keşfet.

{stores.map((s) => ( ))}
Shop InfoBest SellersNicheMonthly VisitsEst. Revenue 30dMeta Ads
{s.name}
{s.domain} · {s.country}
{s.products.map((p) => p.title).join(", ")} {s.niche} {s.monthlyVisits?.toLocaleString()} +{s.monthlyVisitGrowth}% €{s.estRevenue30dMin?.toLocaleString()}–€{s.estRevenue30dMax?.toLocaleString()} {s.brandPages[0]?._count.ads || 0} Details
); }