({
feedChipsVariant,
isOnboardingComplete,
isTagChipFeedsSeeded,
}: FeedListVariablesProps)
| 46 | }; |
| 47 | |
| 48 | export const getFeedListVariables = ({ |
| 49 | feedChipsVariant, |
| 50 | isOnboardingComplete, |
| 51 | isTagChipFeedsSeeded, |
| 52 | }: FeedListVariablesProps): ShellStateVariables => { |
| 53 | const includeTagChipFeeds = |
| 54 | feedChipsVariant !== FeedChipsVariant.None && |
| 55 | (isOnboardingComplete || !!isTagChipFeedsSeeded); |
| 56 | const tagChipSeedStrategy = |
| 57 | includeTagChipFeeds && feedChipsVariant === FeedChipsVariant.V3 |
| 58 | ? TagChipSeedStrategy.V3 |
| 59 | : undefined; |
| 60 | |
| 61 | return { |
| 62 | includeTagChipFeeds, |
| 63 | ...(tagChipSeedStrategy && { tagChipSeedStrategy }), |
| 64 | }; |
| 65 | }; |
| 66 | |
| 67 | export const useFeedListVariables = (): ShellStateVariables => { |
| 68 | const { user } = useAuthContext(); |
no outgoing calls
no test coverage detected