Files
Checkmate/Client/src/Pages/StatusPage/PublicStatus/Hooks/useStatusPageFetch.jsx
T

11 lines
331 B
React
Raw Normal View History

2025-02-02 21:26:48 -08:00
import { useEffect, useState } from "react";
const useStatusPageFetch = () => {
const [isLoading, setIsLoading] = useState(true);
const [networkError, setNetworkError] = useState(false);
const [statusPage, setStatusPage] = useState(undefined);
return [statusPage, isLoading, networkError];
};
export { useStatusPageFetch };