UNPKG

@elgato/icons

Version:

Icons used throughout the Elgato ecosystem.

15 lines (14 loc) 1.52 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { sizeMap } from "../../metadata/sizing.js"; const IconTag = (props) => { const size = sizeMap[props?.size ?? "m"]; const label = props?.label ?? "Icon"; switch (props?.size) { case "l": return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 24 24", width: size, height: size, "aria-label": label, role: "img", ...props, children: [_jsx("path", { d: "M16.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" }), _jsx("path", { fillRule: "evenodd", d: "M12.828 3a2 2 0 0 0-1.414.586l-8 8a2 2 0 0 0 0 2.828l6.172 6.172a2 2 0 0 0 2.828 0l8-8A2 2 0 0 0 21 11.172V5a2 2 0 0 0-2-2zM19 4.5h-6.172a.5.5 0 0 0-.353.146l-8 8a.5.5 0 0 0 0 .708l6.171 6.171a.5.5 0 0 0 .708 0l8-8a.5.5 0 0 0 .146-.353V5a.5.5 0 0 0-.5-.5", clipRule: "evenodd" })] })); default: return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", width: size, height: size, "aria-label": label, role: "img", ...props, children: [_jsx("path", { d: "M14 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2" }), _jsx("path", { fillRule: "evenodd", d: "M18 9.172a2 2 0 0 1-.586 1.414l-7 7a2 2 0 0 1-2.828 0l-5.172-5.172a2 2 0 0 1 0-2.828l7-7A2 2 0 0 1 10.828 2H16a2 2 0 0 1 2 2zM16 3h-5.172a1 1 0 0 0-.707.293l-7 7a1 1 0 0 0 0 1.414l5.172 5.172a1 1 0 0 0 1.414 0l7-7A1 1 0 0 0 17 9.172V4a1 1 0 0 0-1-1", clipRule: "evenodd" })] })); } }; IconTag.iconName = "tag"; export default IconTag;