import { Metadata } from "next";
import { getBrands, getCountries } from "@/app/actions/brand";
import BrandsClient from "./brands-client";

export const metadata: Metadata = { title: "برندها" };
export const dynamic = "force-dynamic";

export default async function BrandsPage() {
  const { brands } = await getBrands();
  const { countries } = await getCountries();
  
  return <BrandsClient initialData={brands || []} initialCountries={countries || []} />;
}
