Skip to content

The VS Code of video editing, built for agents.

TypeScript
250 B
Raw Blame
import type { World } from 'koota';
import { useWorld } from '../world/use-world';

export function useActions<T extends Record<string, (...args: any[]) => any>>(
	actions: (world: World) => T
) {
	const world = useWorld();
	return actions(world);
}