@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 2.58 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconSave = (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: "M16.3691 3.00977C16.827 3.0552 17.2577 3.25772 17.5859 3.58594L20.4141 6.41406C20.7891 6.78906 20.9999 7.2978 21 7.82812V19C21 20.0357 20.2128 20.887 19.2041 20.9893L19 21H5L4.7959 20.9893C3.85435 20.8938 3.1062 20.1457 3.01074 19.2041L3 19V5C3 3.89543 3.89543 3 5 3H16.1719L16.3691 3.00977ZM5 4.5C4.72386 4.5 4.5 4.72386 4.5 5V19C4.5 19.2761 4.72386 19.5 5 19.5H7V14L7.01074 13.7959C7.1062 12.8543 7.85435 12.1062 8.7959 12.0107L9 12H15L15.2041 12.0107C16.2128 12.113 17 12.9643 17 14V19.5H19C19.2761 19.5 19.5 19.2761 19.5 19V7.82812C19.4999 7.69563 19.4472 7.56831 19.3535 7.47461L17 5.12109V7.47461C17 8.51026 16.2128 9.3616 15.2041 9.46387L15 9.47461H9L8.7959 9.46387C7.85435 9.36841 7.1062 8.62026 7.01074 7.67871L7 7.47461V4.5H5ZM9 13.5C8.72386 13.5 8.5 13.7239 8.5 14V19.5H15.5V14C15.5 13.7239 15.2761 13.5 15 13.5H9ZM8.5 7.47461C8.5 7.75075 8.72386 7.97461 9 7.97461H15C15.2761 7.97461 15.5 7.75075 15.5 7.47461V4.5H8.5V7.47461Z" }) }));
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: "M13.3691 3.00977C13.827 3.0552 14.2577 3.25772 14.5859 3.58594L16.4141 5.41406C16.7891 5.78906 16.9999 6.2978 17 6.82812V15L16.9893 15.2041C16.8938 16.1457 16.1457 16.8938 15.2041 16.9893L15 17H5L4.7959 16.9893C3.85435 16.8938 3.1062 16.1457 3.01074 15.2041L3 15V5C3 3.89543 3.89543 3 5 3H13.1719L13.3691 3.00977ZM5 4C4.44772 4 4 4.44772 4 5V15C4 15.5523 4.44772 16 5 16H6V12L6.01074 11.7959C6.113 10.7872 6.96435 10 8 10H12C13.1046 10 14 10.8954 14 12V16H15C15.5523 16 16 15.5523 16 15V6.82812C15.9999 6.56302 15.8945 6.30856 15.707 6.12109L14 4.41406V6C14 7.10457 13.1046 8 12 8H8C6.96435 8 6.113 7.21278 6.01074 6.2041L6 6V4H5ZM8 11C7.44772 11 7 11.4477 7 12V16H13V12C13 11.4477 12.5523 11 12 11H8ZM7 6C7 6.55228 7.44772 7 8 7H12C12.5523 7 13 6.55228 13 6V4H7V6Z" }) }));
}
};
IconSave.iconName = "save";
export default IconSave;