Files
2026-10-12 15:19:54 -04:00

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>
);
}