TurnstileBlockEdit.js
2 years ago
TurnstileOptions.js
2 years ago
TurnstileProvider.js
2 years ago
main.js
2 years ago
preview.js
2 years ago
variation.js
2 years ago
TurnstileProvider.js
24 lines
| 1 | import TurnstileOptions from './TurnstileOptions'; |
| 2 | import TurnstileBlockEdit from './TurnstileBlockEdit'; |
| 3 | |
| 4 | const { |
| 5 | CaptchaOptions, |
| 6 | CaptchaBlockEdit, |
| 7 | CaptchaBlockTip, |
| 8 | } = JetFBComponents; |
| 9 | |
| 10 | export default function TurnstileProvider() { |
| 11 | return <> |
| 12 | <CaptchaOptions provider={ 'turnstile' }> |
| 13 | { props => { |
| 14 | return <> |
| 15 | <TurnstileOptions { ...props } /> |
| 16 | <CaptchaBlockTip/> |
| 17 | </>; |
| 18 | } } |
| 19 | </CaptchaOptions> |
| 20 | <CaptchaBlockEdit provider={ 'turnstile' }> |
| 21 | { props => <TurnstileBlockEdit { ...props } /> } |
| 22 | </CaptchaBlockEdit> |
| 23 | </>; |
| 24 | } |