Files
pterodactyl-panel/resources/scripts/components/server/users/AddSubuserButton.tsx
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

11 lines
321 B
TypeScript

import { useParams } from '@tanstack/react-router';
import { NewLinkButton } from '@/components/elements/NewButton';
const AddSubuserButton = () => {
const { id } = useParams({ strict: false });
return <NewLinkButton to={`/server/${id}/users/new`}>New user</NewLinkButton>;
};
export default AddSubuserButton;