editor.tsx 254 B

123456
  1. import { SWRResponse } from 'swr';
  2. import { useStaticSWR } from './use-static-swr';
  3. export const useIsSlackEnabled = (isEnabled?: boolean): SWRResponse<boolean, Error> => {
  4. return useStaticSWR('isSlackEnabled', isEnabled, { fallbackData: false });
  5. };