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

// src/atoms/link.tsx
import {
  Link as RadixLink
} from "@radix-ui/themes";
import { useMemo } from "react";
import { Heading } from "@radix-ui/themes";
import { jsx } from "react/jsx-runtime";
function Link(props) {
  const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
  const radixSize = useMemo(() => {
    switch (variant) {
      case "caption":
        return "1";
      case "body":
        return "2";
      case "subtitle":
        return "3";
      default:
        return size;
    }
  }, [size, variant]);
  return /* @__PURE__ */ jsx(RadixLink, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
}

export {
  Link,
  Heading
};
//# sourceMappingURL=chunk-TQOQC4PZ.js.map