You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
1.3 KiB
1 line
1.3 KiB
{"ast":null,"code":"import * as React from 'react';\nimport PreventRemoveContext from \"./PreventRemoveContext\";\nexport default function usePreventRemoveContext() {\n var value = React.useContext(PreventRemoveContext);\n if (value == null) {\n throw new Error(\"Couldn't find the prevent remove context. Is your component inside NavigationContent?\");\n }\n return value;\n}","map":{"version":3,"sources":["usePreventRemoveContext.tsx"],"names":["React","PreventRemoveContext","usePreventRemoveContext","value","useContext","Error"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,OAAOC,oBAAoB;AAE3B,eAAe,SAASC,uBAAuB,GAAG;EAChD,IAAMC,KAAK,GAAGH,KAAK,CAACI,UAAU,CAACH,oBAAoB,CAAC;EAEpD,IAAIE,KAAK,IAAI,IAAI,EAAE;IACjB,MAAM,IAAIE,KAAK,CACb,uFAAuF,CACxF;EACH;EAEA,OAAOF,KAAK;AACd","sourceRoot":"../../src","sourcesContent":["import * as React from 'react';\nimport PreventRemoveContext from './PreventRemoveContext';\nexport default function usePreventRemoveContext() {\n const value = React.useContext(PreventRemoveContext);\n if (value == null) {\n throw new Error(\"Couldn't find the prevent remove context. Is your component inside NavigationContent?\");\n }\n return value;\n}\n//# sourceMappingURL=usePreventRemoveContext.js.map"]},"metadata":{},"sourceType":"module"} |