@@ -15,6 +15,7 @@ import useLHNEstimatedListSize from '@hooks/useLHNEstimatedListSize';
1515import useLocalize from '@hooks/useLocalize' ;
1616import useNetwork from '@hooks/useNetwork' ;
1717import usePrevious from '@hooks/usePrevious' ;
18+ import useRootNavigationState from '@hooks/useRootNavigationState' ;
1819import useScrollEventEmitter from '@hooks/useScrollEventEmitter' ;
1920import useTheme from '@hooks/useTheme' ;
2021import useThemeStyles from '@hooks/useThemeStyles' ;
@@ -27,6 +28,7 @@ import {canUserPerformWriteAction} from '@libs/ReportUtils';
2728import isProductTrainingElementDismissed from '@libs/TooltipUtils' ;
2829import variables from '@styles/variables' ;
2930import CONST from '@src/CONST' ;
31+ import NAVIGATORS from '@src/NAVIGATORS' ;
3032import ONYXKEYS from '@src/ONYXKEYS' ;
3133import type { PersonalDetails , Report } from '@src/types/onyx' ;
3234import { isEmptyObject } from '@src/types/utils/EmptyObject' ;
@@ -52,12 +54,16 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio
5254 const [ transactions ] = useOnyx ( ONYXKEYS . COLLECTION . TRANSACTION , { canBeMissing : false } ) ;
5355 const [ draftComments ] = useOnyx ( ONYXKEYS . COLLECTION . REPORT_DRAFT_COMMENT , { canBeMissing : false } ) ;
5456 const [ transactionViolations ] = useOnyx ( ONYXKEYS . COLLECTION . TRANSACTION_VIOLATIONS , { canBeMissing : false } ) ;
57+ const [ activePolicyID ] = useOnyx ( ONYXKEYS . NVP_ACTIVE_POLICY_ID , { canBeMissing : true } ) ;
58+ const [ introSelected ] = useOnyx ( ONYXKEYS . NVP_INTRO_SELECTED , { canBeMissing : true } ) ;
5559 const [ dismissedProductTraining , dismissedProductTrainingMetadata ] = useOnyx ( ONYXKEYS . NVP_DISMISSED_PRODUCT_TRAINING , { canBeMissing : true } ) ;
60+ const [ isFullscreenVisible ] = useOnyx ( ONYXKEYS . FULLSCREEN_VISIBILITY , { canBeMissing : true } ) ;
5661
5762 const theme = useTheme ( ) ;
5863 const styles = useThemeStyles ( ) ;
5964 const { translate, preferredLocale} = useLocalize ( ) ;
6065 const estimatedListSize = useLHNEstimatedListSize ( ) ;
66+ const isReportsSplitNavigatorLast = useRootNavigationState ( ( state ) => state ?. routes ?. at ( - 1 ) ?. name === NAVIGATORS . REPORTS_SPLIT_NAVIGATOR ) ;
6167 const shouldShowEmptyLHN = data . length === 0 ;
6268 const estimatedItemSize = optionMode === CONST . OPTION_MODE . COMPACT ? variables . optionRowHeightCompact : variables . optionRowHeight ;
6369 const platform = getPlatform ( ) ;
@@ -233,6 +239,10 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio
233239 transactionViolations = { transactionViolations }
234240 onLayout = { onLayoutItem }
235241 shouldShowRBRorGBRTooltip = { shouldShowRBRorGBRTooltip }
242+ activePolicyID = { activePolicyID }
243+ onboardingPurpose = { introSelected ?. choice }
244+ isFullscreenVisible = { isFullscreenVisible }
245+ isReportsSplitNavigatorLast = { isReportsSplitNavigatorLast }
236246 />
237247 ) ;
238248 } ,
@@ -253,6 +263,10 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio
253263 onLayoutItem ,
254264 isOffline ,
255265 firstReportIDWithGBRorRBR ,
266+ activePolicyID ,
267+ introSelected ?. choice ,
268+ isFullscreenVisible ,
269+ isReportsSplitNavigatorLast ,
256270 ] ,
257271 ) ;
258272
0 commit comments