Skip to content

🎥 Make videos programmatically with React

351 B
Raw Blame
import {createContext} from 'react';

export type TimelineTrack = {
	readonly id: string;
	readonly name: string;
};

export type TimelineTrackItem = TimelineTrack & {
	readonly role: 'track' | 'clip' | 'transition' | 'overlay';
	readonly seriesOffset: number | null;
};

export const TimelineTrackContext = createContext<TimelineTrack | null>(null);