19 lines
696 B
TypeScript
19 lines
696 B
TypeScript
import React, { useState } from 'react';
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
import { faUserPlus } from '@fortawesome/free-solid-svg-icons';
|
|
import EditSubuserModal from '@/components/server/users/EditSubuserModal';
|
|
import Button from '@/components/elements/Button';
|
|
import tw from 'twin.macro';
|
|
|
|
export default () => {
|
|
const [ visible, setVisible ] = useState(false);
|
|
|
|
return (
|
|
<>
|
|
<EditSubuserModal visible={visible} onModalDismissed={() => setVisible(false)}/>
|
|
<Button onClick={() => setVisible(true)}>
|
|
<FontAwesomeIcon icon={faUserPlus} css={tw`mr-1`}/> New User
|
|
</Button>
|
|
</>
|
|
);
|
|
};
|