Props for the SyncConfigurationPanel component.

interface SyncConfigurationPanelProps {
syncConfig: SyncConfig;
setSyncConfig: React.Dispatch<React.SetStateAction<SyncConfig>>;
isCustomThresholdEnabled: boolean;
setIsCustomThresholdEnabled: React.Dispatch<React.SetStateAction<boolean>>;
handleToggleOption: (option: keyof SyncConfig) => void;
}
interface SyncConfigurationPanelProps {
    syncConfig: SyncConfig;
    setSyncConfig: Dispatch<SetStateAction<SyncConfig>>;
    isCustomThresholdEnabled: boolean;
    setIsCustomThresholdEnabled: Dispatch<SetStateAction<boolean>>;
    handleToggleOption: (option: keyof SyncConfig) => void;
}

Properties

syncConfig: SyncConfig

Current sync configuration settings object.

setSyncConfig: Dispatch<SetStateAction<SyncConfig>>

Dispatch function to update sync configuration state.

isCustomThresholdEnabled: boolean

Whether user has selected custom auto-pause threshold.

setIsCustomThresholdEnabled: Dispatch<SetStateAction<boolean>>

Dispatch function to toggle custom threshold mode.

handleToggleOption: (option: keyof SyncConfig) => void

Callback invoked when toggling a sync configuration option.