@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
17 lines (16 loc) • 3.76 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconMessage = (props) => {
const size = sizeMap[props?.size ?? "m"];
const label = props?.label ?? "Icon";
switch (props?.size) {
case "l":
return (_jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", width: size, height: size, "aria-label": label, role: "img", ...props, children: [_jsx("path", { d: "M8 10.25C8 9.83579 8.33579 9.5 8.75 9.5H15.25C15.6642 9.5 16 9.83579 16 10.25C16 10.6642 15.6642 11 15.25 11H8.75C8.33579 11 8 10.6642 8 10.25Z" }), _jsx("path", { d: "M8.75 13C8.33579 13 8 13.3358 8 13.75C8 14.1642 8.33579 14.5 8.75 14.5H13.25C13.6642 14.5 14 14.1642 14 13.75C14 13.3358 13.6642 13 13.25 13H8.75Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M22 12C22 17.5228 17.5228 22 12 22C10.3461 22 8.786 21.5985 7.41182 20.8877L3.18829 22.0395C2.44179 22.2431 1.75682 21.5582 1.96041 20.8117L3.11228 16.5881C2.40145 15.214 1.99996 13.6539 1.99996 12C1.99996 6.47715 6.47711 2 12 2C17.5228 2 22 6.47715 22 12ZM4.71334 16.4185L3.63779 20.3622L7.58147 19.2866L8.101 19.5554C9.26718 20.1586 10.5915 20.5 12 20.5C16.6944 20.5 20.5 16.6944 20.5 12C20.5 7.30558 16.6944 3.5 12 3.5C7.30554 3.5 3.49996 7.30558 3.49996 12C3.49996 13.4085 3.84135 14.7328 4.44459 15.899L4.71334 16.4185Z" })] }));
case "s":
return (_jsxs("svg", { viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", width: size, height: size, "aria-label": label, role: "img", ...props, children: [_jsx("path", { d: "M5 6.5C5 6.22386 5.22386 6 5.5 6H10.5C10.7761 6 11 6.22386 11 6.5C11 6.77614 10.7761 7 10.5 7H5.5C5.22386 7 5 6.77614 5 6.5Z" }), _jsx("path", { d: "M5.5 9C5.22386 9 5 9.22386 5 9.5C5 9.77614 5.22386 10 5.5 10H8.5C8.77614 10 9 9.77614 9 9.5C9 9.22386 8.77614 9 8.5 9H5.5Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.87153 11.3853L0.816196 14.5513C0.685903 14.9422 1.05777 15.3141 1.44865 15.1838L4.61466 14.1284C5.61794 14.6838 6.77203 15 7.99997 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 7.99997 1C4.13397 1 0.999968 4.13401 0.999968 8C0.999968 9.22794 1.31615 10.382 1.87153 11.3853ZM2.95904 11.2851L2.08111 13.9189L4.7149 13.0409L5.09898 13.2535C5.95781 13.729 6.94573 14 7.99997 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 7.99997 2C4.68626 2 1.99997 4.68629 1.99997 8C1.99997 9.05423 2.271 10.0422 2.74642 10.901L2.95904 11.2851Z" })] }));
default:
return (_jsxs("svg", { viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", width: size, height: size, "aria-label": label, role: "img", ...props, children: [_jsx("path", { d: "M7.5 8C7.22386 8 7 8.22386 7 8.5C7 8.77614 7.22386 9 7.5 9H12.5C12.7761 9 13 8.77614 13 8.5C13 8.22386 12.7761 8 12.5 8H7.5Z" }), _jsx("path", { d: "M7 11.5C7 11.2239 7.22386 11 7.5 11H10.5C10.7761 11 11 11.2239 11 11.5C11 11.7761 10.7761 12 10.5 12H7.5C7.22386 12 7 11.7761 7 11.5Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.99994 18C14.4182 18 17.9999 14.4183 17.9999 10C17.9999 5.58172 14.4182 2 9.99994 2C5.58166 2 1.99994 5.58172 1.99994 10C1.99994 11.3519 2.33528 12.6255 2.92731 13.7421L1.76677 17.6106C1.65234 17.992 2.00795 18.3476 2.38935 18.2332L6.25783 17.0726C7.37445 17.6647 8.64804 18 9.99994 18ZM2.99141 17.0085L4.00308 13.6363L3.81081 13.2737C3.29342 12.2978 2.99994 11.1847 2.99994 10C2.99994 6.13401 6.13395 3 9.99994 3C13.8659 3 16.9999 6.13401 16.9999 10C16.9999 13.866 13.8659 17 9.99994 17C8.81527 17 7.70209 16.7065 6.72626 16.1891L6.36362 15.9969L2.99141 17.0085Z" })] }));
}
};
IconMessage.iconName = "message";
export default IconMessage;