MCPcopy Create free account
hub / github.com/F12FLASH/CTF / useCarousel

Function useCarousel

4.Stackless Stack/client/src/components/ui/carousel.tsx:33–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31const CarouselContext = React.createContext<CarouselContextProps | null>(null)
32
33function useCarousel() {
34 const context = React.useContext(CarouselContext)
35
36 if (!context) {
37 throw new Error("useCarousel must be used within a <Carousel />")
38 }
39
40 return context
41}
42
43const Carousel = React.forwardRef<
44 HTMLDivElement,

Callers 1

carousel.tsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected