{"version":3,"file":"useStytchClient.mjs","sources":["../../../../../../../../web/src/adminPortal/utils/useStytchClient.ts"],"sourcesContent":["import React from 'react';\n\nimport { StytchClientContext } from '../StytchClientContext';\n\nexport const useStytchClient = () => {\n  const client = React.useContext(StytchClientContext).client;\n  if (!client) {\n    throw new Error('A Stytch client could not be found');\n  }\n  return client;\n};\n"],"names":["useStytchClient","client","React","useContext","StytchClientContext","Error"],"mappings":";;;MAIaA,eAAAA,GAAkB,IAAA;AAC7B,IAAA,MAAMC,MAAAA,GAASC,EAAAA,CAAMC,UAAU,CAACC,qBAAqBH,MAAM;AAC3D,IAAA,IAAI,CAACA,MAAAA,EAAQ;AACX,QAAA,MAAM,IAAII,KAAAA,CAAM,oCAAA,CAAA;AAClB,IAAA;IACA,OAAOJ,MAAAA;AACT;;;;"}