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

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

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