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

export interface GovGRLogoProps extends GovGRLogoBaseProps {}

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