UNPKG

335 BJavaScriptView Raw
1import { createContext, useContext } from 'react';
2export const SwiperSlideContext = /*#__PURE__*/createContext(null);
3export const useSwiperSlide = () => {
4 return useContext(SwiperSlideContext);
5};
6export const SwiperContext = /*#__PURE__*/createContext(null);
7export const useSwiper = () => {
8 return useContext(SwiperContext);
9};
\No newline at end of file