strong-testimonials
/
admin
/
wpchill
/
apps
/
notification-system
/
notification
/
notifications-head.jsx
notification-actions.jsx
9 months ago
notifications-footer.jsx
1 year ago
notifications-head.jsx
1 year ago
notifications-list.jsx
1 year ago
notifications-head.jsx
20 lines
| 1 | import { __ } from '@wordpress/i18n'; |
| 2 | import { useWpchillState } from '../state/use-wpchill-state'; |
| 3 | import { setShowContainer } from '../state/actions'; |
| 4 | import { Button } from '@wordpress/components'; |
| 5 | |
| 6 | export function NotificationsHead() { |
| 7 | const { dispatch } = useWpchillState(); |
| 8 | |
| 9 | const closePanel = () => { |
| 10 | dispatch( setShowContainer(false) ); |
| 11 | }; |
| 12 | |
| 13 | return <> |
| 14 | <h2>{ __( 'WPChill Notification Center', 'strong-testimonials' ) }</h2> |
| 15 | <Button onClick={ closePanel }> |
| 16 | <span className="dashicons dashicons-no-alt" ></span> |
| 17 | </Button> |
| 18 | </>; |
| 19 | } |
| 20 |