import {createContext, useContext} from 'react';
import {SharedValue} from 'react-native-reanimated';

export type AnimatedValueContextType = {
  tabAnimatedValue: SharedValue<number>;
  headerTranslateY: SharedValue<number>;
};

export const AnimatedValueContext =
  createContext<Nullable<AnimatedValueContextType>>(null);

export const useAnimatedValue = () => useContext(AnimatedValueContext);
