import { useState, createElement, useContext, Fragment, } from '@wordpress/element' import { __, sprintf } from 'ct-i18n' import DashboardContext from '../context' import ctEvents from 'ct-events' import $ from 'jquery' const DocumentationButton = ({ href = '' }) => { if (ctDashboardLocalizations.plugin_data.hide_docs_section) { return null } return ( {__('Documentation', 'blocksy')} ) } const Home = () => { const { is_companion_active, companion_download_link, child_download_link, } = useContext(DashboardContext) let beforeContent = { content: null } let afterContent = { content: null } const [isLoading, setIsLoading] = useState(false) const [customStatus, setCustomStatus] = useState(false) ctEvents.trigger('ct:dashboard:home:before', beforeContent) ctEvents.trigger('ct:dashboard:home:after', afterContent) const finalStatus = customStatus || is_companion_active return (
{beforeContent.content}

{__('Customizer Shortcuts', 'blocksy')}

  • {__('Color Options', 'blocksy')}

    {__( 'Manage the colour palette, as well as setting colours for different elements of the website.', 'blocksy' )}

  • {__('Typography Options', 'blocksy')}

    {__( 'Set the footer type, number of columns, spacing and colors.', 'blocksy' )}

  • {__('Header Options', 'blocksy')}

    {__( 'Configure the header to your liking with an easy to use drag and drop builder.', 'blocksy' )}

  • {__('Footer Options', 'blocksy')}

    {__( 'Arrange your footer in a way that actually makes sense with our drag and drop builder.', 'blocksy' )}

  • {__('Blog Options', 'blocksy')}

    {__( 'Adjust your blog roll options in a single place and make it stand out in the crowd.', 'blocksy' )}

  • {__('Posts Options', 'blocksy')}

    {__( 'Set the footer type, number of columns, spacing and colors.', 'blocksy' )}

  • {__('Page Options', 'blocksy')}

    {__( 'Set the page container width, spacing, sidebar and more.', 'blocksy' )}

  • {__('Sidebar Options', 'blocksy')}

    {__( 'Change the sidebar behaviour and style with a nice set of options that come in handy.', 'blocksy' )}

{!ctDashboardLocalizations.plugin_data.hide_support_section && ( )}
{afterContent.content} {is_companion_active !== 'active' && (
)}
) } export default Home