UNPKG

@threlte/theatre

Version:

Threlte Components for Theatre, an animation library with a professional motion design toolset

9 lines (8 loc) 239 B
import { getContext, setContext } from 'svelte'; const key = 'threlte-theater-sheet-context'; export const createSheetContext = (context) => { setContext(key, context); }; export const useSheet = () => { return getContext(key); };