import { createElement, createRoot, useState } from '@wordpress/element' import * as check from '@wordpress/element' import { __ } from 'ct-i18n' import NoTheme from './dashboard/NoTheme' import VersionMismatchNotice from './notifications/VersionMismatchNotice' const Dashboard = () => { if (ctDashboardLocalizations.theme_version_mismatch) { return ( ) } return } document.addEventListener('DOMContentLoaded', () => { if (document.getElementById('ct-dashboard')) { const root = createRoot(document.getElementById('ct-dashboard')) root.render() } })