UNPKG

@payfit/unity-components

Version:

11 lines (10 loc) 310 B
import * as e from "react"; //#region src/components/carousel/Carousel.context.tsx var t = e.createContext(null); function n() { let n = e.useContext(t); if (!n) throw Error("useCarousel must be used within a Carousel Component"); return n; } //#endregion export { t as CarouselContext, n as useCarousel };