@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 2.54 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconAction = (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: "M12.25 2C10.4551 2 9 3.45507 9 5.25V5.75C9 6.16421 9.33579 6.5 9.75 6.5C10.1642 6.5 10.5 6.16421 10.5 5.75V5.25C10.5 4.2835 11.2835 3.5 12.25 3.5H18.75C19.7165 3.5 20.5 4.2835 20.5 5.25V11.75C20.5 12.7165 19.7165 13.5 18.75 13.5H18.25C17.8358 13.5 17.5 13.8358 17.5 14.25C17.5 14.6642 17.8358 15 18.25 15H18.75C20.5449 15 22 13.5449 22 11.75V5.25C22 3.45507 20.5449 2 18.75 2H12.25Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16 15C16 18.866 12.866 22 9 22C5.13401 22 2 18.866 2 15C2 11.134 5.13401 8 9 8C12.866 8 16 11.134 16 15ZM14.5 15C14.5 18.0376 12.0376 20.5 9 20.5C5.96243 20.5 3.5 18.0376 3.5 15C3.5 13.7516 3.9159 12.6004 4.6167 11.6774L7.71967 14.7803C8.01256 15.0732 8.48744 15.0732 8.78033 14.7803C9.07322 14.4874 9.07322 14.0126 8.78033 13.7197L5.67736 10.6167C6.60043 9.9159 7.75165 9.5 9 9.5C12.0376 9.5 14.5 11.9624 14.5 15Z" })] }));
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: "M9 4.5C9 3.67157 9.67157 3 10.5 3H15.5C16.3284 3 17 3.67157 17 4.5V9.5C17 10.3284 16.3284 11 15.5 11H14.4291C14.153 11 13.9291 11.2239 13.9291 11.5C13.9291 11.7761 14.153 12 14.4291 12H15.5C16.8807 12 18 10.8807 18 9.5V4.5C18 3.11929 16.8807 2 15.5 2H10.5C9.11929 2 8 3.11929 8 4.5V5.57089C8 5.84703 8.22386 6.07089 8.5 6.07089C8.77614 6.07089 9 5.84703 9 5.57089V4.5Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.5 18C10.5376 18 13 15.5376 13 12.5C13 9.46243 10.5376 7 7.5 7C4.46243 7 2 9.46243 2 12.5C2 15.5376 4.46243 18 7.5 18ZM7.5 17C9.98528 17 12 14.9853 12 12.5C12 10.0147 9.98528 8 7.5 8C6.43749 8 5.46099 8.36824 4.69116 8.98405L7.35355 11.6464C7.54882 11.8417 7.54882 12.1583 7.35355 12.3536C7.15829 12.5488 6.84171 12.5488 6.64645 12.3536L3.98405 9.69116C3.36824 10.461 3 11.4375 3 12.5C3 14.9853 5.01472 17 7.5 17Z" })] }));
}
};
IconAction.iconName = "action";
export default IconAction;