()
| 10 | import { useSelector } from '../redux/redux-utils.js'; |
| 11 | |
| 12 | function useHeaderHeight(): number { |
| 13 | const networkConnected = useSelector(state => state.connectivity.connected); |
| 14 | const insets = useSafeAreaInsets(); |
| 15 | const frame = useSafeAreaFrame(); |
| 16 | const disconnectedBarHeight = networkConnected ? 0 : expandedHeight; |
| 17 | |
| 18 | return ( |
| 19 | getDefaultHeaderHeight(frame, false, insets.top) + disconnectedBarHeight |
| 20 | ); |
| 21 | } |
| 22 | |
| 23 | export { useHeaderHeight }; |
no test coverage detected