"use client";
import { jsxs as m, jsx as o } from "react/jsx-runtime";
import { CiUndo as c } from "../../../../../node_modules/.pnpm/react-icons@5.5.0_react@19.0.0/node_modules/react-icons/ci/index.js";
import { Tooltip as r } from "../shared/tooltip.js";
import { classNames as l } from "../../utils/index.js";
import { useSettings as p } from "../../hooks/use-settings.js";
const C = ({
  className: t,
  type: a,
  settingsType: e,
  fieldName: i,
  ...s
}) => {
  const [, n] = p(i, e);
  return /* @__PURE__ */ m(r, { children: [
    /* @__PURE__ */ o(r.Trigger, { className: l(t), ...s, children: /* @__PURE__ */ o("div", { onClick: () => n(void 0), className: "cursor-pointer px-1.5", children: /* @__PURE__ */ o(c, {}) }) }),
    /* @__PURE__ */ o(r.Content, { children: "Back to default" })
  ] });
};
export {
  C as ResetControl
};
//# sourceMappingURL=reset.control.js.map
