import { StyleSheet, Text, View } from "react-native"; import { ActivityIndicator } from "react-native-paper"; export const Offline = () => { // Add `useIsConnected()` hook return ( {/* Check `isConnected` status and render a message with `ActivityIndicator` */} ); }; const styles = StyleSheet.create({ container: { alignItems: "center", backgroundColor: "#FEE2E2", borderRadius: 10, flexDirection: "row", justifyContent: "space-between", marginHorizontal: 20, padding: 20, position: "absolute", top: 55, width: "90%", }, message: { color: "#991B1B", }, });