import React from 'react' const key = 'CARBON_CTA_1' class Toast extends React.Component { state = { open: false } close = () => { this.setState({ open: false }) window.localStorage.setItem(key, true) } componentDidMount() { window.localStorage.removeItem('CARBON_CTA') if (!window.localStorage.getItem(key)) { this.setState({ open: true }) } } render() { if (process.env.NODE_ENV !== 'production') { return null } if (!this.state.open) { return null } return (

Never lose a Carbon again - save your work automatically!

Click "Sign up" to try it out!
) } } export default Toast