misc_pterodactyl-panel/resources/scripts/components/server/users/AddSubuserButton.tsx

15 lines
457 B
TypeScript
Raw Normal View History

2022-11-25 20:25:03 +00:00
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>
</>
);
};