Props for BackupRestoreSection component.

interface BackupRestoreSectionProps {
/** Current search query for text highlighting. */
searchQuery: string;
/** ID of currently highlighted section. */
highlightedSectionId: string | null;
/** Backup schedule configuration. */
scheduleConfig: BackupScheduleConfig;
/** Timestamp of next scheduled backup. */
nextScheduledBackup: number | null;
/** Timestamp of last scheduled backup. */
lastScheduledBackup: number | null;
/** Whether a manual backup trigger is in progress. */
isTriggeringBackup: boolean;
/** Whether a backup restore operation is in progress. */
isRestoringBackup: boolean;
/** Currently selected backup file for restore. */
selectedBackupFile: File | null;
/** Error message if backup file validation fails. */
backupValidationError: string | null;
/** Callback when backup schedule config changes. */
onScheduleConfigChange: (config: BackupScheduleConfig) => void;
/** Callback to trigger manual backup. */
onTriggerBackup: () => void;
/** Callback to restore backup. */
onRestoreBackup: () => void;
/** Optional callback to restore from specific file. */
onRestoreBackupFile?: (file: File) => void;
/** Callback when backup file is selected. */
onFileSelect: (event: React.ChangeEvent<HTMLInputElement>) => void;
}
interface BackupRestoreSectionProps {
    searchQuery: string;
    highlightedSectionId: null | string;
    scheduleConfig: BackupScheduleConfig;
    nextScheduledBackup: null | number;
    lastScheduledBackup: null | number;
    isTriggeringBackup: boolean;
    isRestoringBackup: boolean;
    selectedBackupFile: null | File;
    backupValidationError: null | string;
    onScheduleConfigChange: (config: BackupScheduleConfig) => void;
    onTriggerBackup: () => void;
    onRestoreBackup: () => void;
    onRestoreBackupFile?: (file: File) => void;
    onFileSelect: (event: ChangeEvent<HTMLInputElement>) => void;
}

Properties

searchQuery: string

Current search query for text highlighting.

highlightedSectionId: null | string

ID of currently highlighted section.

scheduleConfig: BackupScheduleConfig

Backup schedule configuration.

nextScheduledBackup: null | number

Timestamp of next scheduled backup.

lastScheduledBackup: null | number

Timestamp of last scheduled backup.

isTriggeringBackup: boolean

Whether a manual backup trigger is in progress.

isRestoringBackup: boolean

Whether a backup restore operation is in progress.

selectedBackupFile: null | File

Currently selected backup file for restore.

backupValidationError: null | string

Error message if backup file validation fails.

onScheduleConfigChange: (config: BackupScheduleConfig) => void

Callback when backup schedule config changes.

onTriggerBackup: () => void

Callback to trigger manual backup.

onRestoreBackup: () => void

Callback to restore backup.

onRestoreBackupFile?: (file: File) => void

Optional callback to restore from specific file.

onFileSelect: (event: ChangeEvent<HTMLInputElement>) => void

Callback when backup file is selected.