import React from 'react' // Feature flag const ACTIVE = true const key = 'CARBON_CTA_2' function Toast() { const [open, setState] = React.useState(false) React.useEffect(() => { window.localStorage.removeItem('CARBON_CTA') window.localStorage.removeItem('CARBON_CTA_1') 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 (
The team that created Carbon has been acquired!
— Read more