11import React from 'react' ;
22import { View } from 'react-native' ;
3- import ImportedStateIndicator from '@components/ImportedStateIndicator' ;
43import OfflineIndicator from '@components/OfflineIndicator' ;
54import OfflineWithFeedback from '@components/OfflineWithFeedback' ;
65import useOnyx from '@hooks/useOnyx' ;
@@ -16,6 +15,7 @@ import ComposerDropZone from './ComposerDropZone';
1615import ComposerEmojiPicker from './ComposerEmojiPicker' ;
1716import ComposerExceededLength from './ComposerExceededLength' ;
1817import ComposerFooter from './ComposerFooter' ;
18+ import ComposerImportedState from './ComposerImportedState' ;
1919import ComposerInput from './ComposerInput' ;
2020import ComposerLocalTime from './ComposerLocalTime' ;
2121import ComposerProvider from './ComposerProvider' ;
@@ -28,8 +28,7 @@ type ReportActionComposeProps = {
2828
2929function ComposerInner ( { reportID} : ReportActionComposeProps ) {
3030 const styles = useThemeStyles ( ) ;
31- // eslint-disable-next-line rulesdir/prefer-shouldUseNarrowLayout-instead-of-isSmallScreenWidth
32- const { isSmallScreenWidth, shouldUseNarrowLayout} = useResponsiveLayout ( ) ;
31+ const { shouldUseNarrowLayout} = useResponsiveLayout ( ) ;
3332 const [ report ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT } ${ reportID } ` ) ;
3433 const [ isComposerFullSize = false ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_IS_COMPOSER_FULL_SIZE } ${ reportID } ` ) ;
3534 const { reportPendingAction : pendingAction } = getReportOfflinePendingActionAndErrors ( report ) ;
@@ -58,11 +57,7 @@ function ComposerInner({reportID}: ReportActionComposeProps) {
5857 < Composer . ExceededLength />
5958 </ Composer . Footer >
6059 </ OfflineWithFeedback >
61- { ! isSmallScreenWidth && (
62- < View style = { [ styles . mln5 , styles . mrn5 ] } >
63- < ImportedStateIndicator />
64- </ View >
65- ) }
60+ < Composer . ImportedState />
6661 </ View >
6762 </ View >
6863 ) ;
@@ -86,6 +81,7 @@ Composer.SendButton = ComposerSendButton;
8681Composer . Footer = ComposerFooter ;
8782Composer . TypingIndicator = AgentZeroAwareTypingIndicator ;
8883Composer . ExceededLength = ComposerExceededLength ;
84+ Composer . ImportedState = ComposerImportedState ;
8985
9086export default Composer ;
9187export type { SuggestionsRef , ComposerRef , ReportActionComposeProps } ;
0 commit comments