'use client'; import { jsx } from 'react/jsx-runtime'; import { omitThemingProps } from '@chakra-ui/styled-system'; import { cx } from '@chakra-ui/utils'; import { forwardRef } from '../system/forward-ref.mjs'; import { useStyleConfig } from '../system/use-style-config.mjs'; import { chakra } from '../system/factory.mjs'; const Link = forwardRef(function Link2(props, ref) { const styles = useStyleConfig("Link", props); const { className, isExternal, ...rest } = omitThemingProps(props); return /* @__PURE__ */ jsx( chakra.a, { target: isExternal ? "_blank" : void 0, rel: isExternal ? "noopener" : void 0, ref, className: cx("chakra-link", className), ...rest, __css: styles } ); }); Link.displayName = "Link"; export { Link };