Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

previewAutomationOpenReadiness.ts

8 lines306 Bytes

1import type { PreviewAutomationOpenInput, PreviewSessionSnapshot } from "@t3tools/contracts";
2​
3export function previewAutomationOpenNeedsOverlay(
4 input: PreviewAutomationOpenInput,
5 snapshot: PreviewSessionSnapshot,
6): boolean {
7 return input.url !== undefined || snapshot.navStatus._tag !== "Idle";
8}