2022-11-25 20:25:03 +00:00
|
|
|
import { useState } from 'react';
|
2020-03-26 04:58:37 +00:00
|
|
|
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 () => {
|
2022-06-26 19:13:52 +00:00
|
|
|
const [visible, setVisible] = useState(false);
|
2020-03-26 04:58:37 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
2022-06-26 19:13:52 +00:00
|
|
|
<EditSubuserModal visible={visible} onModalDismissed={() => setVisible(false)} />
|
|
|
|
<Button onClick={() => setVisible(true)}>New User</Button>
|
2020-03-26 04:58:37 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|