import React, { useContext } from "react" import BoxHeader from "../components/base/BoxHeader" import BoxUserCreate from "../components/interactive/BoxUserCreate" import useBackendViewset from "../hooks/useBackendViewset" import BoxUserList from "../components/interactive/BoxUserList" import ContextLanguage from "../contexts/ContextLanguage" import PageWithHeader from "../components/base/layout/PageWithHeader" import { faUserCog } from "@fortawesome/free-solid-svg-icons" import makeIcon from "../utils/makeIcon" import AlertError from "../components/interactive/AlertError" import BodyHorizontalUpperGrow from "../components/base/layout/BodyHorizontalUpperGrow" export default function PageUsers() { const { strings } = useContext(ContextLanguage) const {createResource, running, resources, destroyResource, error} = useBackendViewset("/api/v1/users/", "email") return ( {makeIcon(faUserCog)} {strings.manageUsers} } > } lower={ } error={error ? : null} /> ) }