import React, { useContext } from "react" import Style from "./PageUsers.module.css" import classNames from "classnames" 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 BoxAlert from "../components/base/BoxAlert" export default function PageUsers({ children, className, ...props }) { const { strings } = useContext(ContextLanguage) const bv = useBackendViewset("/api/v1/users/", "email") return (
{strings.manageUsers} {bv.error ? {strings[bv.error?.data?.code ?? "errorUnknownError"]} : null}
) }