Modernize gallery UI and fix nav motion

This commit is contained in:
Codex Agent
2026-01-14 11:42:12 +01:00
parent 736ea322dd
commit 7614d896aa
3 changed files with 106 additions and 48 deletions

View File

@@ -70,3 +70,17 @@ export function getMotionContainerPropsForNavigation(
return { variants, initial, animate: 'show' } as const;
}
export function getMotionItemPropsForNavigation(
enabled: boolean,
variants: Variants,
navigationType: 'POP' | 'PUSH' | 'REPLACE'
) {
if (!enabled) {
return {};
}
const initial = navigationType === 'POP' ? 'hidden' : false;
return { variants, initial, animate: 'show' } as const;
}