import { getInventoryProducts } from "@/lib/actions/products";
import { listCategories } from "@/lib/actions/catalog";
import { InventoryClient } from "./inventory-client";

export const dynamic = "force-dynamic";

export default async function InventoryPage() {
  const [products, categories] = await Promise.all([
    getInventoryProducts(),
    listCategories(),
  ]);

  return <InventoryClient products={products} categories={categories} />;
}