hunk.code_window:         environmentId: session.environment._id,
           channelType: ChannelTypeEnum.EMAIL,
         })
       );
       expect(result).to.have.length(0);
     });
     it('should not return Novu integration if usage limit was met', async function () {
       sinon.stub(messageRepository, 'count').resolves(GetNovuIntegration.MAX_NOVU_INTEGRATIONS - 1);
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:     expect(result).to.equal(undefined);
  
hunk.file_path: apps/api/src/app/integrations/usecases/get-novu-integration/get-novu-integration.spec.ts
hunk.type: replace
file: import { INotificationTrigger } from '@novu/shared';
  import { Modal, useMantineTheme } from '@mantine/core';
  import { Button, colors, shadows, Title } from '../../design-system';
  import { TriggerSnippetTabs } from './TriggerSnippetTabs';
  
  export function TemplateTriggerModal({
    isVisible,
    onDismiss,
    trigger,
  }: {
    isVisible: boolean;
    onDismiss: () => void;
    trigger: INotificationTrigger;
  }) {
    const theme = useMantineTheme();
    const dark = theme.colorScheme === 'dark';
  
    return (
      <Modal
        onClose={onDismiss}
        opened={isVisible}
        overlayColor={dark ? colors.BGDark : colors.BGLight}
        overlayOpacity={0.7}
        styles={{
          modal: {
            backgroundColor: dark ? colors.B15 : colors.white,
          },
          body: {
            paddingTop: '5px',
          },
          inner: {
            paddingTop: '180px',
          },
        }}
        sx={{ backdropFilter: 'blur(10px)' }}
        title={<Title>Trigger implementation code</Title>}
        data-test-id="success-trigger-modal"
        shadow={dark ? shadows.dark : shadows.medium}
        radius="md"
        size="xl"
      >
        <TriggerSnippetTabs trigger={trigger} />
        <div style={{ alignItems: 'end' }}>
          <Button data-test-id="trigger-snippet-btn" mt={30} onClick={onDismiss} inherit>
            Got it
          </Button>
        </div>
      </Modal>
    );
  }
  