import React, { createContext, useContext, useRef, useState } from "react";
import { Animated } from "react-native";
export const HEADER_HEIGHT = 56;
const HeaderContext = /*#__PURE__*/createContext(null);
export function HeaderProvider(_ref) {
  let {
    children
  } = _ref;
  const searchbarAnimation = useRef(new Animated.Value(0)).current;
  const [options, setOptions] = useState({
    scrollY: searchbarAnimation,
    animate: false
  });
  return /*#__PURE__*/React.createElement(HeaderContext.Provider, {
    value: {
      options,
      setOptions
    }
  }, children);
}
export function useHeader() {
  return useContext(HeaderContext);
}
//# sourceMappingURL=HeaderContext.js.map