// packages/preferences/src/components/preference-base-option/index.tsx
import { ToggleControl } from "@wordpress/components";
import { jsx, jsxs } from "react/jsx-runtime";
function BaseOption({
  help,
  label,
  isChecked,
  onChange,
  children
}) {
  return /* @__PURE__ */ jsxs("div", { className: "preference-base-option", children: [
    /* @__PURE__ */ jsx(
      ToggleControl,
      {
        help,
        label,
        checked: isChecked,
        onChange
      }
    ),
    children
  ] });
}
var preference_base_option_default = BaseOption;
export {
  preference_base_option_default as default
};
//# sourceMappingURL=index.mjs.map
