• Gets match configuration from storage.

    Returns MatchConfig

    The saved match configuration or default config if not found.

    const config = getMatchConfig();
    
    export function getMatchConfig(): MatchConfig {
    try {
    const config = storage.getItem(STORAGE_KEYS.MATCH_CONFIG);
    return config ? JSON.parse(config) : DEFAULT_MATCH_CONFIG;
    } catch (error) {
    console.error("Error retrieving match config from storage", error);
    return DEFAULT_MATCH_CONFIG;
    }
    }