5 lines
200 B
TypeScript
5 lines
200 B
TypeScript
import { createContext, useContext } from "react";
|
|
|
|
export const AnswerMotionContext = createContext<() => boolean>(() => false);
|
|
export const useAnswerMotion = () => useContext(AnswerMotionContext);
|