"use client";
import { useRouter } from "next/navigation";
import { SellerListingsManager } from "@/components/marketplace/seller/SellerListingsManager";

export default function SellerListingsPage() {
  const router = useRouter();
  return (
    <SellerListingsManager
      onCreateListing={() => router.push("/marketplace/create")}
      onEditListing={(slug) => router.push(`/marketplace/create?edit=${slug}`)}
    />
  );
}
