mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-19 02:26:27 +00:00
31 lines
766 B
TypeScript
31 lines
766 B
TypeScript
import { useState } from "react";
|
|
|
|
import { Heading, HStack } from "@chakra-ui/react";
|
|
import { PrettyButton } from "components";
|
|
import { intl } from "locale";
|
|
import { UserCreateModal } from "modals";
|
|
|
|
import TableWrapper from "./TableWrapper";
|
|
|
|
function Users() {
|
|
const [createShown, setCreateShown] = useState(false);
|
|
|
|
return (
|
|
<>
|
|
<HStack mx={6} my={4} justifyContent="space-between">
|
|
<Heading mb={2}>{intl.formatMessage({ id: "users.title" })}</Heading>
|
|
<PrettyButton size="sm" onClick={() => setCreateShown(true)}>
|
|
{intl.formatMessage({ id: "user.create" })}
|
|
</PrettyButton>
|
|
</HStack>
|
|
<TableWrapper />
|
|
<UserCreateModal
|
|
isOpen={createShown}
|
|
onClose={() => setCreateShown(false)}
|
|
/>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default Users;
|