context.js 335 B

123456789
  1. import { createContext, useContext } from 'react';
  2. export const SwiperSlideContext = /*#__PURE__*/createContext(null);
  3. export const useSwiperSlide = () => {
  4. return useContext(SwiperSlideContext);
  5. };
  6. export const SwiperContext = /*#__PURE__*/createContext(null);
  7. export const useSwiper = () => {
  8. return useContext(SwiperContext);
  9. };