UNPKG

@elgato/icons

Version:

Icons used throughout the Elgato ecosystem.

17 lines (16 loc) 4.17 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { sizeMap } from "../../metadata/sizing.js"; const IconMicrophone = (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", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 2C9.79086 2 8 3.79086 8 6V12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12V6C16 3.79086 14.2091 2 12 2ZM14.5 12V6C14.5 4.61929 13.3807 3.5 12 3.5C10.6193 3.5 9.5 4.61929 9.5 6V12C9.5 13.3807 10.6193 14.5 12 14.5C13.3807 14.5 14.5 13.3807 14.5 12Z" }), _jsx("path", { d: "M18.25 11.25C18.6642 11.25 19 11.5858 19 12C19 13.8565 18.2625 15.637 16.9497 16.9497C15.815 18.0845 14.3307 18.7894 12.75 18.9597V20.5H15.25C15.6642 20.5 16 20.8358 16 21.25C16 21.6642 15.6642 22 15.25 22H8.75C8.33579 22 8 21.6642 8 21.25C8 20.8358 8.33579 20.5 8.75 20.5H11.25V18.9597C9.66926 18.7894 8.18501 18.0845 7.05025 16.9497C5.7375 15.637 5 13.8565 5 12C5 11.5858 5.33579 11.25 5.75 11.25C6.16421 11.25 6.5 11.5858 6.5 12C6.5 13.4587 7.07946 14.8576 8.11091 15.8891C9.14236 16.9205 10.5413 17.5 12 17.5C13.4587 17.5 14.8576 16.9205 15.8891 15.8891C16.9205 14.8576 17.5 13.4587 17.5 12C17.5 11.5858 17.8358 11.25 18.25 11.25Z" })] })); 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", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 4C5 2.34315 6.34315 1 8 1C9.65685 1 11 2.34315 11 4V8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8V4ZM10 4V8C10 9.10457 9.10457 10 8 10C6.89543 10 6 9.10457 6 8V4C6 2.89543 6.89543 2 8 2C9.10457 2 10 2.89543 10 4Z" }), _jsx("path", { d: "M12.5 7.5C12.7761 7.5 13 7.72386 13 8C13 9.32608 12.4732 10.5979 11.5355 11.5355C10.7165 12.3546 9.64245 12.8602 8.5 12.975V14H10.5C10.7761 14 11 14.2239 11 14.5C11 14.7761 10.7761 15 10.5 15H5.5C5.22386 15 5 14.7761 5 14.5C5 14.2239 5.22386 14 5.5 14H7.5V12.975C6.35755 12.8602 5.28355 12.3546 4.46447 11.5355C3.52678 10.5979 3 9.32608 3 8C3 7.72386 3.22386 7.5 3.5 7.5C3.77614 7.5 4 7.72386 4 8C4 9.06087 4.42143 10.0783 5.17157 10.8284C5.92172 11.5786 6.93913 12 8 12C9.06087 12 10.0783 11.5786 10.8284 10.8284C11.5786 10.0783 12 9.06087 12 8C12 7.72386 12.2239 7.5 12.5 7.5Z" })] })); 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", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 2C8.34315 2 7 3.34315 7 5V10C7 11.6569 8.34315 13 10 13C11.6569 13 13 11.6569 13 10V5C13 3.34315 11.6569 2 10 2ZM12 10V5C12 3.89543 11.1046 3 10 3C8.89543 3 8 3.89543 8 5V10C8 11.1046 8.89543 12 10 12C11.1046 12 12 11.1046 12 10Z" }), _jsx("path", { d: "M5.5 9.5C5.77614 9.5 6 9.72386 6 10C6 10.5253 6.10346 11.0454 6.30448 11.5307C6.5055 12.016 6.80014 12.457 7.17157 12.8284C7.54301 13.1999 7.98396 13.4945 8.46927 13.6955C8.95457 13.8965 9.47471 14 10 14C10.5253 14 11.0454 13.8965 11.5307 13.6955C12.016 13.4945 12.457 13.1999 12.8284 12.8284C13.1999 12.457 13.4945 12.016 13.6955 11.5307C13.8965 11.0454 14 10.5253 14 10C14 9.72386 14.2239 9.5 14.5 9.5C14.7761 9.5 15 9.72386 15 10C15 10.6566 14.8707 11.3068 14.6194 11.9134C14.3681 12.52 13.9998 13.0712 13.5355 13.5355C13.0712 13.9998 12.52 14.3681 11.9134 14.6194C11.4613 14.8067 10.9851 14.9262 10.5 14.9749V17H12.5C12.7761 17 13 17.2239 13 17.5C13 17.7761 12.7761 18 12.5 18H7.5C7.22386 18 7 17.7761 7 17.5C7 17.2239 7.22386 17 7.5 17H9.5V14.9749C9.01492 14.9262 8.53866 14.8067 8.08658 14.6194C7.47995 14.3681 6.92876 13.9998 6.46447 13.5355C6.00017 13.0712 5.63188 12.52 5.3806 11.9134C5.12933 11.3068 5 10.6566 5 10C5 9.72386 5.22386 9.5 5.5 9.5Z" })] })); } }; IconMicrophone.iconName = "microphone"; export default IconMicrophone;