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

export interface FooterLinkProps extends FooterLinkBaseProps {}

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