{"version":3,"file":"use-context2.mjs","sources":["../../../../../../../../packages/components/file/src/hooks/use-context.ts"],"sourcesContent":["import { inject, provide } from 'vue'\nimport { type Emitter } from '@tav-ui/utils/mitt'\n\nexport const FileContextKey = Symbol('file')\n\nexport interface FileContext {\n  emitter: Emitter\n}\n\nexport function createFileContext(context: FileContext) {\n  provide(FileContextKey, context)\n}\n\nexport function useFileContext(): FileContext {\n  return inject(FileContextKey) as FileContext\n}\n"],"names":[],"mappings":";;AACY,MAAC,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE;AACtC,SAAS,iBAAiB,CAAC,OAAO,EAAE;AAC3C,EAAE,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AACnC,CAAC;AACM,SAAS,cAAc,GAAG;AACjC,EAAE,OAAO,MAAM,CAAC,cAAc,CAAC,CAAC;AAChC;;;;"}