@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 2.35 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconEdit = (props) => {
const size = sizeMap[props?.size ?? "m"];
const label = props?.label ?? "Icon";
switch (props?.size) {
case "l":
return (_jsx("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", { fillRule: "evenodd", d: "M5.269 20.709c-.904.258-1.356.387-1.665.27a1 1 0 0 1-.584-.583c-.116-.31.013-.761.271-1.666l.981-3.433c.085-.297.127-.445.191-.584q.085-.185.206-.349c.09-.123.199-.232.417-.45L15.238 3.762c.792-.792 1.188-1.188 1.644-1.336.402-.13.834-.13 1.236 0 .456.148.852.544 1.644 1.336l.474.474c.793.793 1.189 1.189 1.337 1.646.13.402.13.834 0 1.236-.148.457-.544.853-1.337 1.646l-10.15 10.15c-.218.218-.327.327-.45.417a2 2 0 0 1-.35.206c-.138.064-.286.106-.583.19zm.445-5a12 12 0 0 1 .112-.37.5.5 0 0 1 .051-.087c-.003.004.003-.006.044-.049.047-.05.11-.113.226-.228L14.53 6.59 17.41 9.47l-8.383 8.383a12 12 0 0 1-.229.225c-.043.04-.053.047-.049.044a.5.5 0 0 1-.087.051c.005-.002-.005.004-.062.022l-.308.09-3.607 1.03zm12.756-7.3.706-.706c.414-.414.66-.661.827-.859.103-.12.137-.18.146-.196.03-.096.03-.2 0-.296a1.3 1.3 0 0 0-.146-.196c-.168-.198-.413-.445-.827-.859l-.474-.474c-.414-.413-.66-.659-.858-.827a1.3 1.3 0 0 0-.196-.145.5.5 0 0 0-.296 0 1.3 1.3 0 0 0-.196.145c-.197.168-.444.414-.858.827l-.707.707zm-1.116-4.56h.003-.002m.289 0h.003zm2.507 2.505.002.003-.001-.001zm.002.29-.002.002z", clipRule: "evenodd" }) }));
default:
return (_jsx("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", { fillRule: "evenodd", d: "M3.85 12.448a2 2 0 0 1 .484-.782l8.252-8.252a2 2 0 0 1 2.828 0l1.172 1.172a2 2 0 0 1 0 2.828l-8.252 8.252a2 2 0 0 1-.782.483l-2.706.902-.316-.948 2.706-.902a1 1 0 0 0 .39-.242l6.313-6.313-2.585-2.585-6.313 6.312a1 1 0 0 0-.242.391l-.902 2.706a.5.5 0 0 0 .633.633l.316.948c-1.173.391-2.288-.724-1.897-1.897zm8.21-7.094 2.586 2.585 1.233-1.232a1 1 0 0 0 0-1.414L14.707 4.12a1 1 0 0 0-1.414 0z", clipRule: "evenodd" }) }));
}
};
IconEdit.iconName = "edit";
export default IconEdit;