feat: upload assets to locked folder (#18806)

* feat: upload assets to locked folder

* chore: refactor params
This commit is contained in:
Arno 2025-06-02 04:45:39 +02:00 committed by GitHub
parent 5589616921
commit b5c3a675b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 43 additions and 18 deletions

View file

@ -17,6 +17,7 @@ export const isSharedLinkRoute = (route?: string | null) => !!route?.startsWith(
export const isSearchRoute = (route?: string | null) => !!route?.startsWith('/(user)/search');
export const isAlbumsRoute = (route?: string | null) => !!route?.startsWith('/(user)/albums/[albumId=id]');
export const isPeopleRoute = (route?: string | null) => !!route?.startsWith('/(user)/people/[personId]');
export const isLockedFolderRoute = (route?: string | null) => !!route?.startsWith('/(user)/locked');
export const isAssetViewerRoute = (target?: NavigationTarget | null) =>
!!(target?.route.id?.endsWith('/[[assetId=id]]') && 'assetId' in (target?.params || {}));