mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 20:05:48 -05:00
19 lines
848 B
TypeScript
19 lines
848 B
TypeScript
import { ArrowLeft } from 'lucide-react';
|
|
import { Icon, PanelLink, ServerContentBlock, Spinner } from '@/sdk';
|
|
import { View, type ViewProps } from '@/sdk/theme';
|
|
|
|
export default function CreateSubuserPage({ model, className }: ViewProps<'page.server.users.create'>) {
|
|
return (
|
|
<ServerContentBlock title='Create Subuser' className={className}>
|
|
<PanelLink
|
|
destination={{ to: '/server/$id/users', params: { id: model.serverId } }}
|
|
className='inline-flex items-center text-sm text-muted-foreground hover:text-foreground mb-4'
|
|
>
|
|
<Icon icon={ArrowLeft} className='mr-2' />
|
|
Back to Users
|
|
</PanelLink>
|
|
{model.loading ? <Spinner size='large' centered /> : <View name='server.subuserForm' />}
|
|
</ServerContentBlock>
|
|
);
|
|
}
|