import { createVNode } from 'vue';
import '../../../utils/index.mjs';
import ATypographyBase from './Base.mjs';
import { linkProps } from './props.mjs';
import { devWarning } from '../../../utils/log.mjs';

const Link = (props, {
  slots,
  attrs
}) => {
  const {
    ellipsis,
    rel,
    ...restProps
  } = {
    ...props,
    ...attrs
  };
  devWarning(typeof ellipsis !== "object", "Typography.Link", "`ellipsis` only supports boolean value.");
  const mergedProps = {
    ...restProps,
    rel: rel === void 0 && restProps.target === "_blank" ? "noopener noreferrer" : rel,
    ellipsis: !!ellipsis,
    component: "a"
  };
  delete mergedProps.navigate;
  return createVNode(ATypographyBase, mergedProps, slots);
};
Link.displayName = "ATypographyLink";
Link.inheritAttrs = false;
Link.props = linkProps();

export { Link as default };
//# sourceMappingURL=Link.mjs.map
