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 QueryIndexesTable from "../../components/QueryIndexesTable.js";
async function QueryIndexesPage({
  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__ */ jsx(PageBody, { children: /* @__PURE__ */ jsxs("div", { 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(QueryIndexesTable, {})
  ] }) }) });
}
export {
  QueryIndexesPage as default
};
//# sourceMappingURL=page.js.map
