1 | {"version":3,"names":["React","PreventRemoveContext","usePreventRemoveContext","value","useContext","Error"],"sources":["usePreventRemoveContext.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport PreventRemoveContext from './PreventRemoveContext';\n\nexport default function usePreventRemoveContext() {\n const value = React.useContext(PreventRemoveContext);\n\n if (value == null) {\n throw new Error(\n \"Couldn't find the prevent remove context. Is your component inside NavigationContent?\"\n );\n }\n\n return value;\n}\n"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,oBAAP,MAAiC,wBAAjC;AAEA,eAAe,SAASC,uBAAT,GAAmC;EAChD,MAAMC,KAAK,GAAGH,KAAK,CAACI,UAAN,CAAiBH,oBAAjB,CAAd;;EAEA,IAAIE,KAAK,IAAI,IAAb,EAAmB;IACjB,MAAM,IAAIE,KAAJ,CACJ,uFADI,CAAN;EAGD;;EAED,OAAOF,KAAP;AACD"} |