Skip to content

Commit 852da5d

Browse files
committed
fix: add missing useVisibleAppLinks.ts
1 parent 1c49873 commit 852da5d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { recordEntries } from '@curvefi/prices-api/objects.util'
2+
import { useAnalyticsApp } from '@ui-kit/hooks/useFeatureFlags'
3+
import { APP_LINK } from '@ui-kit/shared/routes'
4+
5+
/** Some app links are not always visible, depending on certain situations requiring hooks. */
6+
export function useVisibleAppLinks() {
7+
const showAnalytics = useAnalyticsApp()
8+
return recordEntries(APP_LINK).filter(([app]) => app !== 'analytics' || showAnalytics)
9+
}

0 commit comments

Comments
 (0)