• Gets sync configuration from storage.

    Returns SyncConfig

    The saved sync configuration or default config if not found.

    const config = getSyncConfig();
    
    export function getSyncConfig(): SyncConfig {
    try {
    const config = storage.getItem(STORAGE_KEYS.SYNC_CONFIG);
    return config ? JSON.parse(config) : DEFAULT_SYNC_CONFIG;
    } catch (error) {
    console.error("Error retrieving sync config from storage", error);
    return DEFAULT_SYNC_CONFIG;
    }
    }