misc_pterodactyl-panel/resources/scripts/components/server/users/AddSubuserButton.tsx
2022-06-20 15:28:27 -04:00

16 lines
495 B
TypeScript

import React, { 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>
</>
);
};