({ communityId }: { communityId: string })
| 37 | }, [callbackUrl]); |
| 38 | |
| 39 | async function join({ communityId }: { communityId: string }) { |
| 40 | return await fetch('/api/invites/join-button', { |
| 41 | method: 'post', |
| 42 | body: JSON.stringify({ |
| 43 | communityId, |
| 44 | }), |
| 45 | }); |
| 46 | } |
| 47 | |
| 48 | const startSignUp = async (props: StartSignUpProps) => { |
| 49 | setFlow(props.flow || 'signup'); |
no outgoing calls