"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { Page, PageBody } from "@open-mercato/ui/backend/Page";
import { useFeatureToggleItem } from "@open-mercato/core/modules/feature_toggles/components/hooks/useFeatureToggleItem";
import { FeatureToggleDetailsCard } from "@open-mercato/core/modules/feature_toggles/components/FeatureToggleDetailsCard";
import { FeatureToggleOverrideCard } from "@open-mercato/core/modules/feature_toggles/components/FeatureToggleOverrideCard";
function FeatureToggleDetailsPage({ params }) {
  const id = params?.id ?? "";
  const { data: featureToggleItem } = useFeatureToggleItem(id);
  return /* @__PURE__ */ jsx(Page, { children: /* @__PURE__ */ jsxs(PageBody, { children: [
    /* @__PURE__ */ jsx(FeatureToggleDetailsCard, { featureToggleItem: featureToggleItem ?? void 0 }),
    id && /* @__PURE__ */ jsx(FeatureToggleOverrideCard, { toggleId: id })
  ] }) });
}
export {
  FeatureToggleDetailsPage as default
};
//# sourceMappingURL=page.js.map
