use mimic_rs::ClientHints;

fn main() {
    // Example User-Agent strings
    let user_agents = [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36"
    ];

    for ua in user_agents {
        println!("User-Agent: {}", ua);
        println!();

        match ClientHints::from_ua(ua) {
            Ok(hints) => {
                println!("  sec-ch-ua: {}", hints.sec_ch_ua());
                println!("  sec-ch-ua-mobile: {}", hints.sec_ch_ua_mobile());
                println!("  sec-ch-ua-platform: {}", hints.sec_ch_ua_platform());
                println!("  sec-ch-ua-full-version-list: {}", hints.sec_ch_ua_full_version_list());
            }
            Err(e) => {
                println!("  Error: {}", e);
            }
        }

        println!();
        println!("{}", "-".repeat(80));
        println!();
    }
}
