mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-11-09 15:33:31 +00:00
19 lines
471 B
TypeScript
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";
|
|
}
|