14 lines
457 B
TypeScript
14 lines
457 B
TypeScript
import { useState } from 'react';
|
|
import EditSubuserModal from '@/components/server/users/EditSubuserModal';
|
|
import { Button } from '@/components/elements/button/index';
|
|
|
|
export default () => {
|
|
const [visible, setVisible] = useState(false);
|
|
|
|
return (
|
|
<>
|
|
<EditSubuserModal visible={visible} onModalDismissed={() => setVisible(false)} />
|
|
<Button onClick={() => setVisible(true)}>New User</Button>
|
|
</>
|
|
);
|
|
};
|