Server IP : 172.67.158.161 / Your IP : 18.118.142.245 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/dashboard-widget/entries/widget/ |
Upload File : |
/** * External dependencies */ import { ThemeProvider } from '@emotion/react'; /** * WordPress dependencies */ import { compose } from '@wordpress/compose'; import { withSelect, withDispatch } from '@wordpress/data'; import { NoticeList } from '@wordpress/components'; import { PluginArea } from '@wordpress/plugins'; import '@wordpress/notices'; /** * iThemes dependencies */ import { solidTheme } from '@ithemes/ui'; /** * Internal dependencies */ import '@ithemes/security.packages.data'; import '@ithemes/security.dashboard.api'; import { useRegisterCards } from '@ithemes/security.dashboard.dashboard'; import Carousel from './components/carousel'; import './style.scss'; function App( { dashboardId, notices, removeNotice } ) { useRegisterCards(); return ( <ThemeProvider theme={ solidTheme }> <div className="itsec-dashboard"> <NoticeList notices={ notices } onRemove={ removeNotice } /> <Carousel dashboardId={ dashboardId } /> <PluginArea /> </div> </ThemeProvider> ); } export default compose( [ withSelect( ( select ) => ( { dashboardId: select( 'ithemes-security/dashboard' ).getPrimaryDashboard(), notices: select( 'core/notices' ).getNotices( 'ithemes-security' ), } ) ), withDispatch( ( dispatch ) => ( { removeNotice( noticeId ) { return dispatch( 'core/notices' ).removeNotice( noticeId, 'ithemes-security' ); }, } ) ), ] )( App );