export * from '@digigov/react-core/HeaderTitleBase';
import React from 'react';
import {
  HeaderTitleBase,
  HeaderTitleBaseProps,
} from '@digigov/react-core/HeaderTitleBase';
import { Link } from '@digigov/ui/navigation/Link';

export interface HeaderTitleProps extends HeaderTitleBaseProps {}

export const HeaderTitle = React.forwardRef<
  HTMLAnchorElement,
  HeaderTitleProps
>(function HeaderTitle({ children, ...props }, ref) {
  return (
    <HeaderTitleBase as={Link} ref={ref} {...props}>
      {children}
    </HeaderTitleBase>
  );
});

export default HeaderTitle;
