wp.domReady(() => {
  wp.data.dispatch('core/notices').createNotice(
    'info',
    '🎨 Upgrade to Vistaro 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/vistaro/', '_blank'),
        },
        {
          label: 'Close',
          onClick: () =>
            wp.data.dispatch('core/notices').removeNotice('custom-wc-notice'),
        },
      ],
    }
  );
});
