use dioxus::prelude::*;
#[derive(Clone, PartialEq, Props)]
pub struct LocateOffProps {
    #[props(default = 24)]
    pub size: usize,
    #[props(default = "currentColor".to_owned())]
    pub color: String,
    #[props(default = "none".to_owned())]
    pub fill: String,
    #[props(default = 2)]
    pub stroke_width: usize,
    #[props(default = false)]
    pub absolute_stroke_width: bool,
    pub class: Option<String>,
}
#[component]
pub fn LocateOff(props: LocateOffProps) -> Element {
    let stroke_width = if props.absolute_stroke_width {
        props.stroke_width * 24 / props.size
    } else {
        props.stroke_width
    };
    rsx! {
        svg {
            "xmlns": "http://www.w3.org/2000/svg",
            "class": if let Some(class) = props.class { "{class}" },
            "width": "{props.size}",
            "height": "{props.size}",
            "viewBox": "0 0 24 24",
            "fill": "{props.fill}",
            "stroke": "{props.color}",
            "stroke-width": "{stroke_width}",
            "stroke-linecap": "round",
            "stroke-linejoin": "round",
            line {
                "x1": "2",
                "x2": "5",
                "y1": "12",
                "y2": "12",
            }
            line {
                "x1": "19",
                "x2": "22",
                "y1": "12",
                "y2": "12",
            }
            line {
                "x1": "12",
                "x2": "12",
                "y1": "2",
                "y2": "5",
            }
            line {
                "x1": "12",
                "x2": "12",
                "y1": "19",
                "y2": "22",
            }
            path { "d": "M7.11 7.11C5.83 8.39 5 10.1 5 12c0 3.87 3.13 7 7 7 1.9 0 3.61-.83 4.89-2.11" }
            path { "d": "M18.71 13.96c.19-.63.29-1.29.29-1.96 0-3.87-3.13-7-7-7-.67 0-1.33.1-1.96.29" }
            line {
                "x1": "2",
                "x2": "22",
                "y1": "2",
                "y2": "22",
            }
        }
    }
}
