import React, { useContext } from "react" import Style from "./PageDashboard.module.css" import classNames from "classnames" import BoxHeader from "../components/base/BoxHeader" import BoxUserCreate from "../components/interactive/BoxUserCreate" import ContextUser from "../contexts/ContextUser" import BoxAlert from "../components/base/BoxAlert" export default function PageUsers({ children, className, ...props }) { const { user } = useContext(ContextUser) if(!user.isAdmin) { return ( Non sei un amministratore, pertanto non puoi gestire gli utenti della piattaforma. ) } return (
Gestisci utenti
) }