mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-02 12:25:44 -05:00
19 lines
916 B
TypeScript
19 lines
916 B
TypeScript
import { cn } from '@/sdk';
|
|
import type { ViewProps } from '@/sdk/theme';
|
|
|
|
const codeClass = 'font-mono bg-muted rounded-sm py-px px-1';
|
|
|
|
export default function FileEditorNotice({ model, className }: ViewProps<'server.files.editor.notice'>) {
|
|
return model.name.endsWith('.pteroignore') ? (
|
|
<div className={cn('mb-4 p-4 border-l-4 bg-muted rounded-sm border-accent', className)}>
|
|
<p className='text-muted-foreground text-sm'>
|
|
You're editing a <code className={codeClass}>.pteroignore</code> file. Any files or directories
|
|
listed in here will be excluded from backups. Wildcards are supported by using an asterisk (
|
|
<code className={codeClass}>*</code>
|
|
). You can negate a prior rule by prepending an exclamation point (<code className={codeClass}>!</code>
|
|
).
|
|
</p>
|
|
</div>
|
|
) : null;
|
|
}
|