wp.domReady(() => {
  wp.data.dispatch('core/notices').createNotice(
    'info',
    '🎨 Upgrade to Oficetate Pro! Unlock premium templates, animated effects, exclusive blocks, and dedicated support from the Singular team. 💎',
    {
      id: 'custom-wc-notice',
      isDismissible: true,
      actions: [
        {
          label: '🚀 Upgrade Now',
          onClick: () => window.open('https://singularthemes.com/product/oficetate/', '_blank'),
        },
        {
          label: 'Close',
          onClick: () =>
            wp.data.dispatch('core/notices').removeNotice('custom-wc-notice'),
        },
      ],
    }
  );
});
