import React from "react"; import { useAppSelector } from "../hooks/useRedux"; const TopLoader = () => { const isLoading = useAppSelector((state) => state.loading.isLoading); return ( isLoading && (