import React , { forwardRef } from "react" ; import cl from "classnames" ; import { OverridableComponent } from "@navikt/ds-react" ; export interface HeaderTitleProps extends React . AnchorHTMLAttributes < HTMLAnchorElement > { /**
     * Application title
     */ children : React . ReactNode ; } export type HeaderTitleType = OverridableComponent < HeaderTitleProps , HTMLAnchorElement > ; const HeaderTitle = forwardRef ( ( { as : Component = "a" , children , className , ... rest } , ref ) => ( < Component { ... rest } ref = { ref } size = "xsmall" className = { cl ( "navdsi-header__title" , "navds-heading" , `navds-heading--xsmall` , className ) } > < span > { children } < /span> < /Component>)); export default HeaderTitle ;