const FIRST_ENTRY_COMPLETED_KEY = "marriage:first-entry-completed"; export function isFirstEntryCompleted(): boolean { if (typeof window === "undefined") { return false; } try { return window.localStorage.getItem(FIRST_ENTRY_COMPLETED_KEY) === "true"; } catch { return false; } } export function markFirstEntryCompleted(): void { if (typeof window === "undefined") { return; } try { window.localStorage.setItem(FIRST_ENTRY_COMPLETED_KEY, "true"); } catch { // ignore } }