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

export interface CallToActionProps extends CallToActionBaseProps {}

export const CallToAction = React.forwardRef<
  HTMLAnchorElement,
  CallToActionProps
>(function CallToAction({ children, ...props }, ref) {
  return (
    <CallToActionBase as={Link} ref={ref} {...props}>
      {children}
    </CallToActionBase>
  );
});

export default CallToAction;
