@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 4.03 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", { 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: "M5.26875 20.7089C4.3648 20.9672 3.91283 21.0963 3.60367 20.9799C3.33417 20.8784 3.1215 20.6656 3.02011 20.396C2.90379 20.0867 3.03297 19.6346 3.29132 18.7304L4.27213 15.2975C4.35702 15.0004 4.39947 14.8518 4.46308 14.7133C4.51957 14.5902 4.5884 14.4733 4.66851 14.3641C4.75873 14.2412 4.86797 14.132 5.08645 13.9135L15.2381 3.76187C16.0299 2.97011 16.4258 2.57422 16.8822 2.42589C17.2837 2.29541 17.7162 2.29541 18.1178 2.42589C18.5742 2.57423 18.9701 2.97011 19.7619 3.76188L20.2364 4.23641C21.0287 5.02871 21.4249 5.42487 21.5733 5.88171C21.7038 6.28356 21.7038 6.71645 21.5733 7.1183C21.4249 7.57515 21.0287 7.9713 20.2364 8.76361L10.0862 18.9138C9.86783 19.1322 9.75863 19.2414 9.63579 19.3315C9.52672 19.4116 9.40981 19.4804 9.28685 19.5369C9.14837 19.6005 8.99991 19.6429 8.70298 19.7277L5.26875 20.7089ZM5.7141 15.7098C5.75888 15.5531 5.78374 15.4666 5.80452 15.4014C5.8178 15.3597 5.82428 15.3433 5.82592 15.3395C5.82646 15.3383 5.82649 15.3381 5.82592 15.3395C5.84004 15.3087 5.85726 15.2795 5.87728 15.2522C5.87434 15.2562 5.88046 15.2465 5.92103 15.2034C5.96796 15.1535 6.03147 15.0898 6.14671 14.9746L14.5303 6.59099L17.409 9.46968L9.02597 17.8527C8.91077 17.9679 8.84707 18.0314 8.79726 18.0783C8.75418 18.1188 8.74447 18.125 8.74848 18.122C8.72122 18.142 8.69199 18.1592 8.66125 18.1734C8.66577 18.1713 8.65571 18.1768 8.59934 18.1947C8.53415 18.2155 8.44774 18.2404 8.29112 18.2851L4.68392 19.3157L5.7141 15.7098ZM18.4697 8.40902L19.1761 7.70254C19.5898 7.28888 19.8354 7.04162 20.0032 6.844C20.1056 6.7234 20.1404 6.66451 20.1491 6.64805C20.1789 6.55162 20.1789 6.4484 20.1491 6.35197C20.1404 6.33551 20.1056 6.27662 20.0032 6.15601C19.8354 5.95839 19.5898 5.71113 19.1761 5.29747L18.7016 4.82294C18.2882 4.40955 18.0412 4.16412 17.8437 3.99649C17.7232 3.89418 17.6643 3.85936 17.6479 3.85071C17.5516 3.82085 17.4484 3.82085 17.3521 3.85071C17.3356 3.85937 17.2768 3.89418 17.1563 3.99649C16.9588 4.16412 16.7117 4.40955 16.2984 4.82293L15.591 5.53033L18.4697 8.40902ZM17.3541 3.84968L17.357 3.84833C17.357 3.84829 17.3564 3.84853 17.3552 3.84911C17.3549 3.84927 17.3545 3.84946 17.3541 3.84968ZM17.643 3.84833C17.643 3.84828 17.6439 3.84867 17.6459 3.84967L17.643 3.84833ZM20.1501 6.354L20.1515 6.35691C20.1515 6.35692 20.1514 6.35656 20.151 6.35579C20.1508 6.35534 20.1505 6.35474 20.1501 6.354ZM20.1515 6.64311C20.1515 6.64308 20.1511 6.64402 20.1501 6.64601L20.1515 6.64311Z" }) }));
default:
return (_jsx("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: "M3.8507 12.4479C3.94889 12.1534 4.1143 11.8857 4.33385 11.6662L12.5858 3.41422C13.3668 2.63317 14.6332 2.63317 15.4142 3.41422L16.5858 4.58579C17.3668 5.36684 17.3668 6.63317 16.5858 7.41422L8.33385 15.6662C8.1143 15.8857 7.84665 16.0511 7.5521 16.1493L4.84605 17.0513L4.52983 16.1026L7.23587 15.2006C7.38315 15.1515 7.51697 15.0688 7.62675 14.959L13.9393 8.64645L11.3536 6.06066L5.04096 12.3733C4.93119 12.483 4.84848 12.6169 4.79938 12.7641L3.89737 15.4702C3.76708 15.8611 4.13895 16.2329 4.52983 16.1026L4.84605 17.0513C3.67342 17.4422 2.55781 16.3266 2.94869 15.154L3.8507 12.4479ZM12.0607 5.35356L14.6465 7.93934L15.8787 6.70711C16.2692 6.31659 16.2692 5.68342 15.8787 5.2929L14.7071 4.12132C14.3166 3.7308 13.6834 3.7308 13.2929 4.12132L12.0607 5.35356Z" }) }));
}
};
IconEdit.iconName = "edit";
export default IconEdit;