import { useSelector } from "react-redux"
import Users from "./Users"
import React from "react"
import Preloader from "../common/Preloader/Preloader"
import { getIsFetchingSelector } from "../../redux/selectors/userSelectors"
export const UsersPage: React.FC = (props) => {
const isFetching = useSelector(getIsFetchingSelector)
return <>{isFetching ? <Preloader /> : <Users />}</>
}