UNPKG

977 BSource Map (JSON)View Raw
1{"version":3,"sources":["context.ts"],"names":["React","context","createContext","showActionSheetWithOptions","options","callback","useActionSheet","useContext","Provider","Consumer"],"mappings":"AAAA,MAAO,GAAKA,CAAAA,KAAZ,KAAuB,OAAvB,CAIA,GAAMC,CAAAA,OAAO,CAAGD,KAAK,CAACE,aAAN,CAAsC,CACpDC,0BAA0B,CAAE,oCAACC,OAAD,CAA8BC,QAA9B,CAAgE,CAAE,CAD1C,CAAtC,CAAhB,CAIA,MAAO,SAASC,CAAAA,cAAT,EAA0B,CAC/B,MAAON,CAAAA,KAAK,CAACO,UAAN,CAAiBN,OAAjB,CAAP,CACD,C,GAEOO,CAAAA,Q,CAAuBP,O,CAAvBO,Q,CAAUC,Q,CAAaR,O,CAAbQ,Q,CAElB,OAASD,QAAT,CAAmBC,QAAnB","sourcesContent":["import * as React from 'react';\n\nimport { ActionSheetOptions, ActionSheetProps } from './types';\n\nconst context = React.createContext<ActionSheetProps>({\n showActionSheetWithOptions: (options: ActionSheetOptions, callback: (i: number) => void) => {},\n});\n\nexport function useActionSheet() {\n return React.useContext(context);\n}\n\nconst { Provider, Consumer } = context;\n\nexport { Provider, Consumer };\n"]}
\No newline at end of file