mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
20 lines
801 B
TypeScript
20 lines
801 B
TypeScript
import { Card, CopyOnClick } from '@/sdk';
|
|
import type { ViewProps } from '@/sdk/theme';
|
|
|
|
export default function ServerDebug({ model, className }: ViewProps<'server.debug'>) {
|
|
return (
|
|
<Card title='Debug Information' className={className}>
|
|
<div className='flex items-center justify-between text-sm'>
|
|
<p>Node</p>
|
|
<code className='font-mono bg-muted rounded-sm py-1 px-2'>{model.node}</code>
|
|
</div>
|
|
<CopyOnClick text={model.uuid}>
|
|
<div className='flex items-center justify-between mt-2 text-sm'>
|
|
<p>Server ID</p>
|
|
<code className='font-mono bg-muted rounded-sm py-1 px-2'>{model.uuid}</code>
|
|
</div>
|
|
</CopyOnClick>
|
|
</Card>
|
|
);
|
|
}
|