import React, { FC } from 'react';
import { useTranslation } from 'react-i18next';
import { Link as RouterLink } from 'react-router-dom';
import { ButtonProps, Button } from '@chakra-ui/react';
import { URLs } from '../../../__data__/urls';

export const CtaButton: FC<ButtonProps> = (props) => {
  const { t } = useTranslation();

  return (
    <Button
      as={RouterLink}
      to={URLs.orderForm.getUrl()}
      colorScheme='primary'
      {...props}
    >
      {t('dry-wash.landing.make-order-button')}
    </Button>
  );
};
