import { useQuery } from "@apollo/client/react"; import { useState } from "react"; import { Link } from "react-router-dom"; import { AllUsersDocument } from "../../types"; import { activeUserFilter } from "../../utils/users"; const UserList = () => { const { data, loading } = useQuery(AllUsersDocument); const [showAll, setShowAll] = useState(false); if (loading) return