hunk.code_window: import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
   import { WidgetShell } from './ApplicationShell';
   import { NotificationCenterWidgetContainer } from './notification-center';
   import { sendNotificationClick, sendUrlChange, unseenChanged } from '../embed/embed.service';
   export function App() {
     return (
       <Router>
  
hunk.labels: keep keep keep replace keep keep keep keep
hunk.after_edit: import { actionClick, sendNotificationClick, sendUrlChange, unseenChanged } from '../embed/embed.service';
  
hunk.file_path: apps/widget/src/components/App.tsx
hunk.type: replace
file: import { Injectable } from '@nestjs/common';
  import { SubscriberRepository, DalException } from '@novu/dal';
  import { RemoveSubscriberCommand } from './remove-subscriber.command';
  import { ApiException } from '../../../shared/exceptions/api.exception';
  
  @Injectable()
  export class RemoveSubscriber {
    constructor(private subscriberRepository: SubscriberRepository) {}
  
    async execute(command: RemoveSubscriberCommand) {
      try {
        await this.subscriberRepository.delete({
          _environmentId: command.environmentId,
          subscriberId: command.subscriberId,
        });
      } catch (e) {
        if (e instanceof DalException) {
          throw new ApiException(e.message);
        }
        throw e;
      }
  
      return {
        acknowledged: true,
        status: 'deleted',
      };
    }
  }
  