import { Dialog, Form, NewButton, SpinnerOverlay, useAppForm, type BackupListModel } from '@/sdk'; const ignoredDescription = [ 'Enter the files or folders to ignore while generating this backup.', 'Leave blank to use the contents of the .pteroignore file in the root of the server directory if present.', 'Wildcard matching of files and folders is supported in addition to negating a rule by prefixing the path', 'with an exclamation point.', ].join(' '); function CreateBackupDialog({ model, onClose }: { model: BackupListModel; onClose: () => void }) { const form = useAppForm({ defaultValues: { name: '', ignored: '', isLocked: false }, onSubmit: async ({ value }) => { if (await model.actions.create(value)) { onClose(); } }, }); return (