{"version":3,"file":"AttachmentSelectorContext.mjs","names":[],"sources":["../../../src/context/AttachmentSelectorContext.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport React, { createContext, useContext } from 'react';\n\nexport type AttachmentSelectorContextValue = {\n  fileInput: HTMLInputElement | null;\n};\n\nconst AttachmentSelectorContext = createContext<AttachmentSelectorContextValue>({\n  fileInput: null,\n});\n\nexport const AttachmentSelectorContextProvider = ({\n  children,\n  value,\n}: PropsWithChildren<{ value: AttachmentSelectorContextValue }>) => (\n  <AttachmentSelectorContext.Provider value={value}>\n    {children}\n  </AttachmentSelectorContext.Provider>\n);\n\nexport const useAttachmentSelectorContext = () => useContext(AttachmentSelectorContext);\n"],"mappings":";;;AAOA,IAAM,4BAA4B,cAA8C,EAC9E,WAAW,KACb,CAAC;AAED,IAAa,qCAAqC,EAChD,UACA,YAEA,oBAAC,0BAA0B,UAA3B;CAA2C;CACxC;AACiC,CAAA;AAGtC,IAAa,qCAAqC,WAAW,yBAAyB"}