2020-03-26 04:58:37 +00:00
|
|
|
import React, { useState } from 'react';
|
|
|
|
import EditSubuserModal from '@/components/server/users/EditSubuserModal';
|
2022-06-20 19:28:27 +00:00
|
|
|
import { Button } from '@/components/elements/button/index';
|
2020-03-26 04:58:37 +00:00
|
|
|
|
|
|
|
export default () => {
|
|
|
|
const [ visible, setVisible ] = useState(false);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
2020-10-25 22:47:50 +00:00
|
|
|
<EditSubuserModal visible={visible} onModalDismissed={() => setVisible(false)}/>
|
2020-07-04 23:26:07 +00:00
|
|
|
<Button onClick={() => setVisible(true)}>
|
2022-06-20 19:28:27 +00:00
|
|
|
New User
|
2020-07-04 23:26:07 +00:00
|
|
|
</Button>
|
2020-03-26 04:58:37 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|