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, theme_custom_description, 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}

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

) } export default Heading