hunk.code_window:         $set: updatePayload,
         }
       );
       const template = await this.notificationTemplateRepository.findById(command.templateId, command.organizationId);
       const getSubscriberPreferenceCommand = GetSubscriberTemplatePreferenceCommand.create({
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:     this.analyticsService.track('Update User Preference - [Notification Center]', command.organizationId, {
         _organization: command.organizationId,
         _subscriber: command.subscriberId,
         _template: command.templateId,
         ...updatePayload,
       });
  
hunk.file_path: apps/api/src/app/widgets/usecases/update-subscriber-preference/update-subscriber-preference.usecase.ts
hunk.type: add
file: import React from 'react';
  import { Button as MantineButton, SharedButtonProps } from '@mantine/core';
  import useStyles from './Button.styles';
  import { SpacingProps } from '../shared/spacing.props';
  
  interface IButtonProps extends JSX.ElementChildrenAttribute, SpacingProps {
    loading?: boolean;
    size?: 'md' | 'lg';
    variant?: 'outline' | 'filled';
    disabled?: boolean;
    icon?: React.ReactNode;
    fullWidth?: boolean;
    submit?: boolean;
    onClick?: () => void;
    inherit?: boolean;
  }
  
  /**
   * Button component
   *
   */
  export function Button({
    loading,
    children,
    submit = false,
    icon,
    size = 'md',
    fullWidth,
    disabled = false,
    inherit = false,
    onClick,
    ...props
  }: IButtonProps) {
    const { classes } = useStyles({ disabled, inherit });
    const defaultDesign = { radius: 'md', classNames: classes } as SharedButtonProps;
    const withIconProps = icon ? { leftIcon: icon } : {};
  
    return (
      <MantineButton
        {...defaultDesign}
        {...withIconProps}
        type={submit ? 'submit' : 'button'}
        onClick={onClick}
        disabled={disabled}
        size={size}
        loading={loading}
        fullWidth={fullWidth}
        {...props}
      >
        {children}
      </MantineButton>
    );
  }
  