import {
  MetadataForm
} from "./chunk-INYLPVCG.js";
import "./chunk-TKGWSUEI.js";
import "./chunk-SITRHMZZ.js";
import "./chunk-GDWBOQI5.js";
import "./chunk-3QSRE5LS.js";
import "./chunk-INNFZYX2.js";
import "./chunk-LAVHRER2.js";
import "./chunk-Y7QKP6QU.js";
import "./chunk-RLRWDHME.js";
import "./chunk-K5324KIX.js";
import "./chunk-FV76G2D7.js";
import "./chunk-GHDLST2P.js";
import "./chunk-YVYYOBAE.js";
import "./chunk-L2NJPDUD.js";
import "./chunk-P7UBW2EI.js";
import "./chunk-MR6REQKT.js";
import "./chunk-EPSDO2MJ.js";
import "./chunk-BHEU34FL.js";
import "./chunk-W34KDYZA.js";
import "./chunk-II3CLUXA.js";
import {
  useCollection,
  useUpdateCollection
} from "./chunk-XKEYHWBS.js";
import "./chunk-J2XUEO2E.js";
import "./chunk-656G74I2.js";
import "./chunk-VWPNMEOE.js";
import "./chunk-O72AIZUN.js";
import "./chunk-VUWAOX7H.js";
import "./chunk-5DKUSZQ7.js";
import "./chunk-DIAWPVYS.js";
import "./chunk-4U2BLH45.js";
import "./chunk-YAUGB4LD.js";
import "./chunk-A5DJIOHN.js";
import "./chunk-RHKRREUU.js";
import "./chunk-ZA2KFUFR.js";
import "./chunk-DTGEFKK4.js";
import "./chunk-NBMM2TZK.js";

// src/pages/collections/[id]/metadata/index.tsx
import { useParams } from "react-router-dom";
import { jsx } from "react/jsx-runtime";
var Component = () => {
  const { id } = useParams();
  const { product_collection, isPending, isError, error } = useCollection(id);
  const { mutateAsync, isPending: isMutating } = useUpdateCollection(product_collection?.id);
  if (isError) throw error;
  return /* @__PURE__ */ jsx(
    MetadataForm,
    {
      metadata: product_collection?.metadata,
      hook: mutateAsync,
      isPending,
      isMutating
    }
  );
};
export {
  Component
};
