import { createElement, Component, useContext } from '@wordpress/element' import { sprintf, __ } from 'ct-i18n' import DashboardContext from './context' import { Link } from '@reach/router' const Navigation = () => { const userNavigationLinks = [] const endUserNavigationLinks = [] const { theme_version } = useContext(DashboardContext) ctEvents.trigger('ct:dashboard:navigation-links', userNavigationLinks) ctEvents.trigger( 'ct:dashboard:end-navigation-links', endUserNavigationLinks ) return (