import { forwardRef } from 'react'; import type { PressableRef, TextRef } from '../../helpers/internal/types'; import { Button } from '../button'; import type { ButtonLabelProps } from '../button/button.types'; import { resolveAnimationObject } from '../button/button.utils'; import { DISPLAY_NAME } from './link-button.constants'; import linkButtonClassNames from './link-button.styles'; import type { LinkButtonProps } from './link-button.types'; // -------------------------------------------------- const LinkButtonRoot = forwardRef( (props, ref) => { const { className, animation, ...restProps } = props; const rootClassName = linkButtonClassNames.root({ className }); const resolvedAnimation = { ...resolveAnimationObject(animation), highlight: false, }; return (