import { forwardRef , Ref } from 'react' ; import Button , { ButtonProps } from './Button' ; export type LinkButtonProps = Omit < ButtonProps , 'shape' > ; const LinkButton = ( props , ref ) => { return < Button shape = "link" color = "norm" ref = { ref } { ... props } />; } ; export default forwardRef < HTMLButtonElement , LinkButtonProps > ( LinkButton ) ;