import { useState } from 'react' import MangoPill from '../components/MangoPill' import Button from './Button' const doNothing = (e) => { e.stopPropagation() } const FooterSection = () => { const [done, setDone] = useState(false) const [email, setEmail] = useState('') const handleChange = (e) => { setEmail(e.target.value) } const handleSubmit = async (e) => { e.preventDefault() await fetch('/api/signup', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ email }), }) setDone(true) } return (

Want product news and updates?{' '} Sign up for our newsletter.

{done ? ( Thank you for signing up! 🎉 ) : ( <>
)}

We promise to never spam and only send alpha.

) } export default FooterSection