import {
  OFFER_PRODUCT_DETAIL_FIELDS
} from "./chunk-XQUF3WIS.js";
import {
  useProduct
} from "./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]/breadcrumb.tsx
import { jsx } from "react/jsx-runtime";
var Breadcrumb = (props) => {
  const { id } = props.params || {};
  const { product } = useProduct(
    id,
    { fields: OFFER_PRODUCT_DETAIL_FIELDS },
    { initialData: props.data, enabled: Boolean(id) }
  );
  if (!product) return null;
  return /* @__PURE__ */ jsx("span", { children: product.title ?? id });
};
export {
  Breadcrumb
};
