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

export interface HeaderLogoProps extends HeaderLogoBaseProps {}

export const HeaderLogo = React.forwardRef<HTMLAnchorElement, HeaderLogoProps>(
  function HeaderLogo({ children, ...props }, ref) {
    return (
      <HeaderLogoBase as={Link} ref={ref} {...props}>
        {children}
      </HeaderLogoBase>
    );
  }
);
export default HeaderLogo;
