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

export interface HeaderSecondaryLogoProps
  extends HeaderSecondaryLogoBaseProps {}

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