mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 20:05:48 -05:00
7 lines
366 B
TypeScript
7 lines
366 B
TypeScript
import type { ViewProps } from '@pterodactyl/sdk';
|
|
|
|
/** Loaded with the file browser, which shows the view's placeholder until the chunk has loaded. */
|
|
export default function FileDetails({ model, Default }: ViewProps<'server.files.details'>) {
|
|
return model.kind === 'archive' ? <Default model={{ ...model, name: `${model.name} (archive)` }} /> : <Default />;
|
|
}
|