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

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

export {
  Avatar
};
//# sourceMappingURL=chunk-3SSSCLJ5.js.map