UNPKG

@suspensive/react

Version:

Suspensive interfaces for react

1 lines 871 B
{"version":3,"file":"DefaultPropsContexts.cjs","names":[],"sources":["../../src/contexts/DefaultPropsContexts.ts"],"sourcesContent":["import { createContext } from 'react'\nimport type { DelayProps, SuspenseProps } from '..'\nimport type { OmitKeyof } from '../utility-types/OmitKeyof'\n\nexport const DelayDefaultPropsContext = createContext<OmitKeyof<DelayProps, 'children'>>({\n ms: undefined,\n fallback: undefined,\n})\nDelayDefaultPropsContext.displayName = 'DelayDefaultPropsContext'\n\nexport const SuspenseDefaultPropsContext = createContext<OmitKeyof<SuspenseProps, 'children'>>({\n fallback: undefined,\n clientOnly: undefined,\n})\nSuspenseDefaultPropsContext.displayName = 'SuspenseDefaultPropsContext'\n"],"mappings":";;;AAIA,MAAa,oDAA4E;CACvF,IAAI;CACJ,UAAU;AACZ,CAAC;AACD,yBAAyB,cAAc;AAEvC,MAAa,uDAAkF;CAC7F,UAAU;CACV,YAAY;AACd,CAAC;AACD,4BAA4B,cAAc"}