function useFriendStatus(friendID) { const [isOnline, setIsOnline] = useState(null); // ... return isOnline; }