import React from 'react' // Feature flag const ACTIVE = true const key = 'CARBON_CTA_3' function Toast() { const [open, setState] = React.useState(false) React.useEffect(() => { window.localStorage.removeItem('CARBON_CTA_2') if (!window.localStorage.getItem(key)) { setState(true) } }, []) if (process.env.NODE_ENV !== 'production') { return null } if (!ACTIVE) { return null } if (!open) { return null } function close() { setState(false) window.localStorage.setItem(key, true) } return (

Help fight the climate crisis by offsetting your carbon production

Find out how
) } export default Toast