import { createElement, Component, useContext } from '@wordpress/element' import DashboardContext from './context' import { sprintf, __ } from 'ct-i18n' import ctEvents from 'ct-events' const Heading = () => { const { theme_name, dashboard_has_heading } = useContext(DashboardContext) let afterContent = { content: null } ctEvents.trigger('ct:dashboard:heading:after', afterContent) return (

e.shiftKey && ctEvents.trigger('ct:dashboard:heading:advanced-click') }> {dashboard_has_heading === 'yes' && ( )} {theme_name} {dashboard_has_heading === 'yes' && afterContent.content}

{__( `The most innovative, lightning fast and super charged WordPress theme. Build visually your next web project in no time.`, 'blocksy' )}

) } export default Heading