| Server IP : 172.67.191.88 / Your IP : 104.23.243.205 Web Server : Microsoft-IIS/7.5 System : Windows NT WIN-HN0MTSF2AF1 6.1 build 7601 (Windows Server 2008 R2 Enterprise Edition Service Pack 1) AMD64 User : IWPD_11(bayt-altogg) ( 0) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/bayt-altoggar.com/httpdocs/wp-content/plugins/block-options/src/admin/ |
Upload File : |
/**
* WordPress dependencies
*/
const { useSelect, useDispatch } = wp.data;
const { SnackbarList } = wp.components;
export default function Notices() {
const notices = useSelect(
( select ) =>
select( 'core/notices' )
.getNotices()
.filter( ( notice ) => notice.type === 'snackbar' ),
[]
);
const { removeNotice } = useDispatch( 'core/notices' );
return (
<SnackbarList
className="components-editor-notices__snackbar"
notices={ notices }
onRemove={ removeNotice }
/>
);
}