import {
  OFFER_VARIANT_DETAIL_FIELDS
} from "./chunk-XQUF3WIS.js";
import {
  useOffer
} from "./chunk-5DKUSZQ7.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/offers/[id]/variants/[offer_id]/breadcrumb.tsx
import { jsx } from "react/jsx-runtime";
var Breadcrumb = (props) => {
  const offerId = props.params?.offer_id;
  const { offer } = useOffer(
    offerId,
    { fields: OFFER_VARIANT_DETAIL_FIELDS },
    { initialData: props.data, enabled: Boolean(offerId) }
  );
  if (!offer) return null;
  return /* @__PURE__ */ jsx("span", { children: offer.product_variant?.title ?? offerId });
};
export {
  Breadcrumb
};
