ReCaptcha.tsx 504 B

1234567891011121314151617181920212223
  1. import React from 'react';
  2. import styled from 'styled-components';
  3. import { Flex } from 'reflexbox/styled-components';
  4. const ReCaptcha = () => {
  5. if (process.env.NODE_ENV !== 'production') {
  6. return null;
  7. }
  8. return (
  9. <Flex
  10. margin="54px 0 16px"
  11. id="g-recaptcha"
  12. className="g-recaptcha"
  13. data-sitekey={process.env.RECAPTCHA_SITE_KEY}
  14. data-callback="recaptchaCallback"
  15. data-size="invisible"
  16. data-badge="inline"
  17. />
  18. );
  19. };
  20. export default ReCaptcha;