import { TouchableOpacity } from "react-native"; import { Wifi } from "@react-buoy/shared-ui"; import { useWifiState } from "../hooks/useWifiState"; /** * Small icon button that toggles React Query’s online manager, allowing developers to simulate * offline scenarios directly from the modal header. */ export function WifiToggle({ size = 16 }: { size?: number }) { const { isOnline, handleWifiToggle } = useWifiState(); return ( {isOnline ? ( ) : ( )} ); }