//! generated from webauthn_icons.rs.mako
//! (by running `make templates` in `core`)
//! do not edit manually!


use crate::strutil::TString;
use crate::ui::util::include_res;


const ICON_APPLE: &[u8] = include_res!("layout_eckhart/res/fido/icon_apple.toif");
const ICON_AWS: &[u8] = include_res!("layout_eckhart/res/fido/icon_aws.toif");
const ICON_BINANCE: &[u8] = include_res!("layout_eckhart/res/fido/icon_binance.toif");
const ICON_BITBUCKET: &[u8] = include_res!("layout_eckhart/res/fido/icon_bitbucket.toif");
const ICON_BITFINEX: &[u8] = include_res!("layout_eckhart/res/fido/icon_bitfinex.toif");
const ICON_BITWARDEN: &[u8] = include_res!("layout_eckhart/res/fido/icon_bitwarden.toif");
const ICON_CLOUDFLARE: &[u8] = include_res!("layout_eckhart/res/fido/icon_cloudflare.toif");
const ICON_COINBASE: &[u8] = include_res!("layout_eckhart/res/fido/icon_coinbase.toif");
const ICON_DASHLANE: &[u8] = include_res!("layout_eckhart/res/fido/icon_dashlane.toif");
const ICON_DROPBOX: &[u8] = include_res!("layout_eckhart/res/fido/icon_dropbox.toif");
const ICON_DUO: &[u8] = include_res!("layout_eckhart/res/fido/icon_duo.toif");
const ICON_FACEBOOK: &[u8] = include_res!("layout_eckhart/res/fido/icon_facebook.toif");
const ICON_FASTMAIL: &[u8] = include_res!("layout_eckhart/res/fido/icon_fastmail.toif");
const ICON_FEDORA: &[u8] = include_res!("layout_eckhart/res/fido/icon_fedora.toif");
const ICON_GANDI: &[u8] = include_res!("layout_eckhart/res/fido/icon_gandi.toif");
const ICON_GEMINI: &[u8] = include_res!("layout_eckhart/res/fido/icon_gemini.toif");
const ICON_GITHUB: &[u8] = include_res!("layout_eckhart/res/fido/icon_github.toif");
const ICON_GITLAB: &[u8] = include_res!("layout_eckhart/res/fido/icon_gitlab.toif");
const ICON_GOOGLE: &[u8] = include_res!("layout_eckhart/res/fido/icon_google.toif");
const ICON_INVITY: &[u8] = include_res!("layout_eckhart/res/fido/icon_invity.toif");
const ICON_KEEPER: &[u8] = include_res!("layout_eckhart/res/fido/icon_keeper.toif");
const ICON_KRAKEN: &[u8] = include_res!("layout_eckhart/res/fido/icon_kraken.toif");
const ICON_LOGIN_GOV: &[u8] = include_res!("layout_eckhart/res/fido/icon_login.gov.toif");
const ICON_MICROSOFT: &[u8] = include_res!("layout_eckhart/res/fido/icon_microsoft.toif");
const ICON_MOJEID: &[u8] = include_res!("layout_eckhart/res/fido/icon_mojeid.toif");
const ICON_NAMECHEAP: &[u8] = include_res!("layout_eckhart/res/fido/icon_namecheap.toif");
const ICON_PROTON: &[u8] = include_res!("layout_eckhart/res/fido/icon_proton.toif");
const ICON_SLUSHPOOL: &[u8] = include_res!("layout_eckhart/res/fido/icon_slushpool.toif");
const ICON_STRIPE: &[u8] = include_res!("layout_eckhart/res/fido/icon_stripe.toif");
const ICON_TUTANOTA: &[u8] = include_res!("layout_eckhart/res/fido/icon_tutanota.toif");

/// Translates icon name into its data.
pub fn get_fido_icon_data(icon_name: Option<TString<'static>>) -> Option< &'static [u8]> {
    if let Some(icon_name) = icon_name {
        icon_name.map(|c| match c {
            "apple" => Some(ICON_APPLE),
            "aws" => Some(ICON_AWS),
            "binance" => Some(ICON_BINANCE),
            "bitbucket" => Some(ICON_BITBUCKET),
            "bitfinex" => Some(ICON_BITFINEX),
            "bitwarden" => Some(ICON_BITWARDEN),
            "cloudflare" => Some(ICON_CLOUDFLARE),
            "coinbase" => Some(ICON_COINBASE),
            "dashlane" => Some(ICON_DASHLANE),
            "dropbox" => Some(ICON_DROPBOX),
            "duo" => Some(ICON_DUO),
            "facebook" => Some(ICON_FACEBOOK),
            "fastmail" => Some(ICON_FASTMAIL),
            "fedora" => Some(ICON_FEDORA),
            "gandi" => Some(ICON_GANDI),
            "gemini" => Some(ICON_GEMINI),
            "github" => Some(ICON_GITHUB),
            "gitlab" => Some(ICON_GITLAB),
            "google" => Some(ICON_GOOGLE),
            "invity" => Some(ICON_INVITY),
            "keeper" => Some(ICON_KEEPER),
            "kraken" => Some(ICON_KRAKEN),
            "login.gov" => Some(ICON_LOGIN_GOV),
            "microsoft" => Some(ICON_MICROSOFT),
            "mojeid" => Some(ICON_MOJEID),
            "namecheap" => Some(ICON_NAMECHEAP),
            "proton" => Some(ICON_PROTON),
            "slushpool" => Some(ICON_SLUSHPOOL),
            "stripe" => Some(ICON_STRIPE),
            "tutanota" => Some(ICON_TUTANOTA),
            _ => None,
        })
    } else {
        None
    }
}
