UNPKG

@elgato/icons

Version:

Icons used throughout the Elgato ecosystem.

15 lines (14 loc) 2.1 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { sizeMap } from "../../metadata/sizing.js"; const IconLock = (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.75 15.7993C13.1984 15.54 13.5 15.0552 13.5 14.5C13.5 13.6716 12.8284 13 12 13C11.1716 13 10.5 13.6716 10.5 14.5C10.5 15.0552 10.8016 15.54 11.25 15.7993V17.25C11.25 17.6642 11.5858 18 12 18C12.4142 18 12.75 17.6642 12.75 17.25V15.7993Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 1.25C9.37665 1.25 7.25 3.37665 7.25 6V9H6C4.89543 9 4 9.89543 4 11V20C4 21.1046 4.89543 22 6 22H18C19.1046 22 20 21.1046 20 20V11C20 9.89543 19.1046 9 18 9H16.75V6C16.75 3.37665 14.6234 1.25 12 1.25ZM15.25 9V6C15.25 4.20507 13.7949 2.75 12 2.75C10.2051 2.75 8.75 4.20507 8.75 6V9H15.25ZM5.5 11C5.5 10.7239 5.72386 10.5 6 10.5H18C18.2761 10.5 18.5 10.7239 18.5 11V20C18.5 20.2761 18.2761 20.5 18 20.5H6C5.72386 20.5 5.5 20.2761 5.5 20V11Z" })] })); 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: "M10 14C10.5523 14 11 13.5523 11 13C11 12.4477 10.5523 12 10 12C9.44771 12 9 12.4477 9 13C9 13.5523 9.44771 14 10 14Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 6V8C4.89543 8 4 8.89543 4 10V16C4 17.1046 4.89543 18 6 18H14C15.1046 18 16 17.1046 16 16V10C16 8.89543 15.1046 8 14 8V6C14 3.79086 12.2091 2 10 2C7.79086 2 6 3.79086 6 6ZM10 3C8.34315 3 7 4.34315 7 6V8H13V6C13 4.34315 11.6569 3 10 3ZM6 9H14C14.5523 9 15 9.44772 15 10V16C15 16.5523 14.5523 17 14 17H6C5.44772 17 5 16.5523 5 16V10C5 9.44772 5.44772 9 6 9Z" })] })); } }; IconLock.iconName = "lock"; export default IconLock;