import React , { forwardRef } from "react" ; import cl from "classnames" ; import { OverridableComponent } from "@navikt/ds-react" ; export interface HeaderButtonProps extends React . AnchorHTMLAttributes < HTMLButtonElement > { /**
     * Application Button
     */ children : React . ReactNode ; } export type HeaderButtonType = OverridableComponent < HeaderButtonProps , HTMLButtonElement > ; const HeaderButton = forwardRef ( ( { as : Component = "button" , className , ... rest } , ref ) => ( < Component { ... rest } ref = { ref } className = { cl ( "navdsi-header__button" , className ) } / > ) ) ; export default HeaderButton ;