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