import * as React from 'react'; import classNames from 'classnames'; import { ComponentClassNames } from '../shared'; import { BaseLinkProps, LinkProps, ForwardRefPrimitive, Primitive, } from '../types'; import { View } from '../View'; const LinkPrimitive: Primitive = ( { as = 'a', children, className, isExternal, ...rest }, ref ) => { return ( {children} ); }; /** * [📖 Docs](https://ui.docs.amplify.aws/react/components/link) */ export const Link: ForwardRefPrimitive = React.forwardRef(LinkPrimitive); Link.displayName = 'Link';