import { jsx, jsxs } from "react/jsx-runtime";
import Link from "next/link";
import { Page, PageBody } from "@open-mercato/ui/backend/Page";
import { Button } from "@open-mercato/ui/primitives/button";
import { resolveTranslations } from "@open-mercato/shared/lib/i18n/server";
import { StatusSettings } from "../../../components/StatusSettings.js";
import { TaxRatesSettings } from "../../../components/TaxRatesSettings.js";
import { DocumentNumberSettings } from "../../../components/DocumentNumberSettings.js";
import { OrderEditingSettings } from "../../../components/OrderEditingSettings.js";
import { ShippingMethodsSettings } from "../../../components/ShippingMethodsSettings.js";
import { PaymentMethodsSettings } from "../../../components/PaymentMethodsSettings.js";
import { AdjustmentKindSettings } from "../../../components/AdjustmentKindSettings.js";
async function SalesConfigurationPage({
  searchParams
}) {
  const { translate } = await resolveTranslations();
  const returnTo = typeof searchParams?.returnTo === "string" && searchParams.returnTo.trim().length ? searchParams.returnTo.trim() : null;
  return /* @__PURE__ */ jsx(Page, { children: /* @__PURE__ */ jsxs(PageBody, { className: "space-y-8", children: [
    returnTo ? /* @__PURE__ */ jsx(Button, { asChild: true, variant: "outline", size: "sm", children: /* @__PURE__ */ jsx(Link, { href: returnTo, children: translate("common.back", "Back") }) }) : null,
    /* @__PURE__ */ jsx(StatusSettings, {}),
    /* @__PURE__ */ jsx(AdjustmentKindSettings, {}),
    /* @__PURE__ */ jsx(ShippingMethodsSettings, {}),
    /* @__PURE__ */ jsx(PaymentMethodsSettings, {}),
    /* @__PURE__ */ jsx(TaxRatesSettings, {}),
    /* @__PURE__ */ jsx(OrderEditingSettings, {}),
    /* @__PURE__ */ jsx(DocumentNumberSettings, {})
  ] }) });
}
export {
  SalesConfigurationPage as default
};
//# sourceMappingURL=page.js.map
