UNPKG

@payfit/unity-components

Version:

11 lines (10 loc) • 347 B
import { createContext as e, useContext as t } from "react"; //#region src/core/components/dropzone/Dropzone.context.tsx var n = e(null), r = n.Provider; function i() { let e = t(n); if (!e) throw Error("Dropzone parts must be used within a Dropzone"); return e; } //#endregion export { r as DropzoneContextProvider, i as useDropzoneContext };