'use client'; import {mergeProps} from 'react-aria/mergeProps'; import {useLink, type AriaLinkOptions} from 'react-aria/useLink'; import {useFocusRing} from 'react-aria/useFocusRing'; import {useHover} from 'react-aria/useHover'; import {useRef} from 'react'; import type {ReactNode} from 'react'; import './Link.css'; export interface LinkProps extends AriaLinkOptions { children?: ReactNode; } export function Link(props: LinkProps) { let ref = useRef(null); let {linkProps, isPressed} = useLink(props, ref); let {hoverProps, isHovered} = useHover(props); let {focusProps, isFocusVisible} = useFocusRing(); return ( {props.children} ); }