import React from 'react' const key = 'CARBON_CTA_1' function Toast() { const [open, setState] = React.useState(false) React.useEffect(() => { window.localStorage.removeItem('CARBON_CTA') if (!window.localStorage.getItem(key)) { setState(true) } }, []) if (process.env.NODE_ENV !== 'production') { return null } if (!open) { return null } function close() { setState(false) window.localStorage.setItem(key, true) } return (
Never lose a Carbon again - save your work automatically!
Click "Sign up" to try it out!