Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

472 B
Raw Blame
import { createContext, useContext, useState, type ReactNode } from 'react';

const HistoryOperation = createContext({ busy: false, setBusy: (_busy: boolean) => {} });
export const useMotionHistoryOperation = () => useContext(HistoryOperation);

export function MotionHistoryProvider({ children }: { children: ReactNode }) {
  const [busy, setBusy] = useState(false);
  return <HistoryOperation.Provider value={{ busy, setBusy }}>{children}</HistoryOperation.Provider>;
}