UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

1 lines • 976 B
{"version":3,"file":"TabContext.js","names":[],"sources":["esm/ui/TabContext.js"],"sourcesContent":["import { createContext } from \"react\";\nconst TabContext = createContext({});\nconst TabTriggerMapContext = createContext({});\nconst TabsDescriptorsContext = createContext({});\nconst TabsNavigatorContext = createContext(\n null\n);\nconst TabsStateContext = createContext({\n type: \"tab\",\n preloadedRouteKeys: [],\n history: [],\n index: -1,\n key: \"\",\n stale: false,\n routeNames: [],\n routes: []\n});\nexport {\n TabContext,\n TabTriggerMapContext,\n TabsDescriptorsContext,\n TabsNavigatorContext,\n TabsStateContext\n};\n//# sourceMappingURL=TabContext.js.map\n"],"mappings":";;;AACA,MAAM,aAAa,cAAc,CAAC,CAAC;AACnC,MAAM,uBAAuB,cAAc,CAAC,CAAC;AAC7C,MAAM,yBAAyB,cAAc,CAAC,CAAC;AAC/C,MAAM,uBAAuB,cAC3B,IACF;AACA,MAAM,mBAAmB,cAAc;CACrC,MAAM;CACN,oBAAoB,CAAC;CACrB,SAAS,CAAC;CACV,OAAO,CAAC;CACR,KAAK;CACL,OAAO;CACP,YAAY,CAAC;CACb,QAAQ,CAAC;AACX,CAAC"}