Files
Recordly/electron/editorStartupView.ts
T

19 lines
471 B
TypeScript

/** Resolve the destination before renderer code or project hydration runs. */
export function resolveEditorStartupView({
projectPath,
videoPath,
recordingVideoPath,
devInput,
smokeExport,
}: {
projectPath?: string | null;
videoPath?: string | null;
recordingVideoPath?: string | null;
devInput?: string;
smokeExport?: boolean;
}): "home" | "editor" {
return projectPath || videoPath || recordingVideoPath || devInput || smokeExport
? "editor"
: "home";
}