import {
  __objRest,
  __spreadProps,
  __spreadValues
} from "./chunk-2NMEKWO5.js";

// src/atoms/check-box.tsx
import {
  Checkbox as RadixCheckbox
} from "@radix-ui/themes";
import { useMemo, forwardRef } from "react";
import { jsx } from "react/jsx-runtime";
var Checkbox = forwardRef(
  (props, ref) => {
    const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
    const radixSize = useMemo(() => {
      switch (size) {
        case "small":
          return "1";
        case "medium":
          return "2";
        case "large":
          return "3";
      }
    }, [size]);
    return /* @__PURE__ */ jsx(RadixCheckbox, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize }));
  }
);
Checkbox.displayName = "Checkbox";

export {
  Checkbox
};
//# sourceMappingURL=chunk-DGAB7BIE.js.map