import React from 'react' // Feature flag const ACTIVE = false const key = 'CARBON_CTA_4' function Toast() { const [open, setState] = React.useState(false) React.useEffect(() => { window.localStorage.removeItem('CARBON_CTA_2') window.localStorage.removeItem('CARBON_CTA_3') 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 (

Black Lives Matter.

Help end police violence in America →
) } export default Toast