How to use the @codesandbox/notifications/lib/state.NotificationStatus.SUCCESS function in @codesandbox/notifications

To help you get started, we’ve selected a few @codesandbox/notifications examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github codesandbox / codesandbox-client / packages / app / src / app / overmind / effects / vscode / index.ts View on Github external
const getStatus = () => {
      switch (type) {
        case 'error':
          return NotificationStatus.ERROR;
        case 'warning':
          return NotificationStatus.WARNING;
        case 'success':
          return NotificationStatus.SUCCESS;
        default:
          return NotificationStatus.NOTICE;
      }
    };
github codesandbox / codesandbox-client / packages / app / src / app / overmind / effects / notificationToast.ts View on Github external
success(message: string) {
    notificationState.addNotification({
      message,
      status: NotificationStatus.SUCCESS,
    });
  },
  warning(message: string) {