hunk.code_window: import { useEnvController } from '../../../hooks';
   export function NotificationCenterWidget({ user }: { user: IUserEntity | undefined }) {
     const { environment } = useEnvController();
  
hunk.labels: keep add keep keep keep
hunk.after_edit: const BACKEND_URL = IS_EU_ENV ? 'https://api.novu.co' : API_ROOT;
   const SOCKET_URL = IS_EU_ENV ? 'https://ws.novu.co' : WS_URL;
  
hunk.file_path: apps/web/src/components/layout/components/NotificationCenterWidget.tsx
hunk.type: add
file: import { ApiPropertyOptional } from '@nestjs/swagger';
  import { IsBoolean, IsOptional, ValidateNested } from 'class-validator';
  import { Type } from 'class-transformer';
  import { ChannelPreference } from '../../shared/dtos/channel-preference';
  
  export class UpdateSubscriberGlobalPreferencesRequestDto {
    @ApiPropertyOptional({
      description: 'Enable or disable the subscriber global preferences.',
      type: Boolean,
    })
    @IsBoolean()
    @IsOptional()
    enabled?: boolean;
  
    @ApiPropertyOptional({
      type: [ChannelPreference],
      description: 'The subscriber global preferences for every ChannelTypeEnum.',
    })
    @IsOptional()
    @ValidateNested()
    @Type(() => ChannelPreference)
    preferences?: ChannelPreference[];
  }
  