hunk.code_window: export interface NotifireOptions {
     //
     // This interface describes the options you want to pass to
     // NotifireModule.
     //
     providers: Array<any>;
     templates: Array<any>;
   }
hunk.labels: keep keep keep keep keep replace replace keep
hunk.after_edit:   providers: IProvider[];
     templates: ITemplate[];
  
hunk.file_path: packages/nest/src/interfaces/notifire-options.interface.ts
hunk.type: replace
file: import { useQuery } from 'react-query';
  import { INotificationTemplate } from '@notifire/shared';
  import { getTemplateById } from '../../../api/templates';
  
  export function useTemplateFetcher(templateId) {
    const { isLoading: loading, data: template, refetch } = useQuery<INotificationTemplate>(
      `notificationById:${templateId}`,
      () => getTemplateById(templateId),
      {
        enabled: !!templateId,
        refetchOnMount: false,
        refetchInterval: false,
      }
    );
  
    return {
      template,
      loading,
      refetch,
    };
  }
  