{"version":3,"file":"components/Layout/project-info-context.mjs","sources":["../../../src/components/Layout/project-info-context.tsx"],"sourcesContent":["import { createContext, useContext } from 'react';\nimport { SDK } from '@rsdoctor/types';\n\nexport interface ProjectInfoContextValue {\n  project: SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetProjectInfo> | null;\n}\n\nexport const ProjectInfoContext = createContext<ProjectInfoContextValue>({\n  project: null,\n});\n\nexport function useProjectInfo() {\n  return useContext(ProjectInfoContext);\n}\n"],"names":["ProjectInfoContext","createContext","useProjectInfo","useContext"],"mappings":";AAOO,MAAMA,qBAAqB,WAAHA,GAAGC,cAAuC;IACvE,SAAS;AACX;AAEO,SAASC;IACd,OAAOC,WAAWH;AACpB"}