use oxc::span::Atom;
const SVG_NS: &str = "http://www.w3.org/2000/svg";
const MATHML_NS: &str = "http://www.w3.org/1998/Math/MathML";
pub fn tag_ns(tag_name: &str) -> Option<Atom<'static>> {
match tag_name {
"animate"
| "animateMotion"
| "animateTransform"
| "circle"
| "clipPath"
| "defs"
| "desc"
| "ellipse"
| "feBlend"
| "feColorMatrix"
| "feComponentTransfer"
| "feComposite"
| "feConvolveMatrix"
| "feDiffuseLighting"
| "feDisplacementMap"
| "feDistantLight"
| "feDropShadow"
| "feFlood"
| "feFuncA"
| "feFuncB"
| "feFuncG"
| "feFuncR"
| "feGaussianBlur"
| "feImage"
| "feMerge"
| "feMergeNode"
| "feMorphology"
| "feOffset"
| "fePointLight"
| "feSpecularLighting"
| "feSpotLight"
| "feTile"
| "feTurbulence"
| "filter"
| "foreignObject"
| "g"
| "image"
| "line"
| "linearGradient"
| "marker"
| "mask"
| "metadata"
| "mpath"
| "path"
| "pattern"
| "polygon"
| "polyline"
| "radialGradient"
| "rect"
| "script"
| "set"
| "stop"
| "style"
| "svg"
| "switch"
| "symbol"
| "text"
| "textPath"
| "title"
| "tspan"
| "use"
| "view" => Some(Atom::new_const(SVG_NS)),
"math" | "maction" | "annotation" | "annotation-xml" | "menclose" | "merror"
| "mfenced" | "mfrac" | "mi" | "mmultiscripts" | "mn" | "mo" | "mover" | "mpadded"
| "mphantom" | "mprescripts" | "mroot" | "mrow" | "ms" | "semantics" | "mspace"
| "msqrt" | "mstyle" | "msub" | "msup" | "msubsup" | "mtable" | "mtd" | "mtext" | "mtr"
| "munder" | "munderover" => Some(Atom::new_const(MATHML_NS)),
_ => None,
}
}