import {
createElement,
Component,
createRef,
useState,
useEffect,
useRef
} from '@wordpress/element'
import { __, sprintf } from 'ct-i18n'
const Notification = ({ initialStatus, url, pluginUrl, pluginLink }) => {
const [pluginStatus, setPluginStatus] = useState('installed')
const [isLoading, setIsLoading] = useState(false)
const containerEl = useRef(null)
useEffect(() => {
setPluginStatus(initialStatus)
}, [])
return (
{__('Congratulations!')}
{__('Blocksy theme is now active and ready to use.')}
Blocksy Companion Plugin. This way you will have access to custom extensions, demo templates and many other awesome features.'
)
}}
/>
{pluginStatus === 'uninstalled' && (
{__('Download Blocksy Companion')}
)}
{pluginStatus !== 'uninstalled' && (
)}
{__('Theme Dashboard')}
)
}
export default Notification