import { setBlockSettingsValueByKey as p } from "../store/builder-slice.js";
import { getBlockSettingsValueByKey as r } from "../../../../store/selectors.js";
import { useAppDispatch as c } from "./use-app-dispatch.js";
import { useAppSelector as m } from "./use-app-selector.js";
const y = (e, s) => {
  const o = m(r(e, s)), i = c();
  return [o, (t) => {
    const n = typeof t == "function" ? t(o) : t;
    i(p({ id: e, values: [{ key: s, value: n }] }));
  }];
};
export {
  y as useBlockSettings
};
//# sourceMappingURL=use-block-settings.js.map
