use dioxus::core::{Element, Template, TemplateNode};
use crate::IconProps;
use crate::vdom::{attr, icon_element, icon_template, path, rect, svg};
#[cfg_attr(any(doc, rust_analyzer), doc = include_str!("docs/qr_code.md"))]
#[cfg_attr(any(doc, rust_analyzer), doc = include_str!("../../../rustdoc-header.html"))]
#[allow(non_snake_case)]
pub fn QrCode(props: IconProps) -> Element {
static TEMPLATE_ROOTS: &[TemplateNode] = &[svg(&[
rect(&[
attr("height", "5"),
attr("rx", "1"),
attr("width", "5"),
attr("x", "3"),
attr("y", "3"),
]),
rect(&[
attr("height", "5"),
attr("rx", "1"),
attr("width", "5"),
attr("x", "16"),
attr("y", "3"),
]),
rect(&[
attr("height", "5"),
attr("rx", "1"),
attr("width", "5"),
attr("x", "3"),
attr("y", "16"),
]),
path(&[attr("d", "M21 16h-3a2 2 0 0 0-2 2v3")]),
path(&[attr("d", "M21 21v.01")]),
path(&[attr("d", "M12 7v3a2 2 0 0 1-2 2H7")]),
path(&[attr("d", "M3 12h.01")]),
path(&[attr("d", "M12 3h.01")]),
path(&[attr("d", "M12 16v.01")]),
path(&[attr("d", "M16 12h1")]),
path(&[attr("d", "M21 12v.01")]),
path(&[attr("d", "M12 21v-1")]),
])];
static TEMPLATE: Template = icon_template(TEMPLATE_ROOTS);
icon_element(TEMPLATE, props)
}