( isRemoteMode: boolean, _services: any, _allServicesReady: boolean, )
| 105 | |
| 106 | // Custom hook for intro message |
| 107 | export function useIntroMessage( |
| 108 | isRemoteMode: boolean, |
| 109 | _services: any, |
| 110 | _allServicesReady: boolean, |
| 111 | ) { |
| 112 | const [showIntroMessage, setShowIntroMessage] = useState(false); |
| 113 | |
| 114 | useEffect(() => { |
| 115 | const shouldShow = !isRemoteMode; |
| 116 | |
| 117 | setShowIntroMessage(shouldShow); |
| 118 | }, [isRemoteMode]); |
| 119 | |
| 120 | return [showIntroMessage, setShowIntroMessage] as const; |
| 121 | } |
| 122 | |
| 123 | // Custom hook to combine all selector logic |
| 124 | export function useSelectors( |