@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 5.58 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconBook = (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: "M7.37499 4.5C6.41756 4.5 5.4695 4.68858 4.58495 5.05497C3.7004 5.42137 2.89668 5.9584 2.21967 6.63541C2.07902 6.77606 2 6.96682 2 7.16574L2.00001 18.75C2.00001 19.0533 2.18274 19.3268 2.46299 19.4429C2.74325 19.559 3.06584 19.4948 3.28034 19.2803C3.81805 18.7426 4.45642 18.3161 5.15898 18.0251C5.86155 17.734 6.61455 17.5843 7.375 17.5843C8.13545 17.5843 8.88845 17.734 9.59102 18.0251C10.2922 18.3155 10.9294 18.7409 11.4665 19.2771C11.4791 19.2899 11.4922 19.3023 11.5058 19.3142C11.6211 19.4154 11.7602 19.4753 11.9036 19.4938C11.9544 19.5004 12.0056 19.5017 12.0562 19.4979C12.2193 19.4857 12.3791 19.4204 12.5077 19.3021C12.5153 19.295 12.5229 19.2878 12.5303 19.2803C13.0681 18.7426 13.7064 18.3161 14.409 18.0251C15.1115 17.734 15.8645 17.5843 16.625 17.5843C17.3854 17.5843 18.1385 17.734 18.841 18.0251C19.5436 18.3161 20.1819 18.7426 20.7197 19.2803C20.9342 19.4948 21.2568 19.559 21.537 19.4429C21.8173 19.3268 22 19.0533 22 18.75L22 7.16573C22 6.96682 21.921 6.77606 21.7803 6.6354C21.1033 5.9584 20.2996 5.42137 19.415 5.05497C18.5305 4.68858 17.5824 4.5 16.625 4.5C15.6676 4.5 14.7195 4.68858 13.835 5.05497C13.1713 5.32985 12.5532 5.70076 12 6.15476C11.4468 5.70076 10.8286 5.32985 10.165 5.05497C9.28048 4.68858 8.33243 4.5 7.37499 4.5ZM11.25 7.4876C10.7611 7.04735 10.2002 6.69312 9.59101 6.44079C8.88845 6.14978 8.13544 6 7.37499 6C6.61454 6 5.86154 6.14978 5.15898 6.44079C4.5498 6.69312 3.98889 7.04735 3.5 7.4876L3.5 17.1993C3.84455 16.9831 4.20739 16.7956 4.58496 16.6392C5.46951 16.2728 6.41757 16.0843 7.375 16.0843C8.33243 16.0843 9.28049 16.2728 10.165 16.6392C10.5426 16.7956 10.9055 16.9831 11.25 17.1993L11.25 7.4876ZM14.409 6.44079C15.1115 6.14978 15.8645 6 16.625 6C17.3854 6 18.1384 6.14978 18.841 6.44079C19.4502 6.69312 20.0111 7.04735 20.5 7.48759L20.5 17.1993C20.1554 16.9831 19.7926 16.7956 19.415 16.6392C18.5305 16.2728 17.5824 16.0843 16.625 16.0843C15.6676 16.0843 14.7195 16.2728 13.835 16.6392C13.4574 16.7956 13.0945 16.9831 12.75 17.1993L12.75 7.4876C13.2389 7.04735 13.7998 6.69312 14.409 6.44079Z" }) }));
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: "M2.30866 16.4619C2.49539 16.5393 2.71031 16.4966 2.85331 16.3538L2.86222 16.3452C2.8707 16.3371 2.88468 16.324 2.90399 16.3066C2.94263 16.2717 3.00242 16.2196 3.08188 16.1561C3.24111 16.0287 3.4775 15.8566 3.77932 15.6841C4.38504 15.338 5.23689 15 6.25 15C7.26311 15 8.11496 15.338 8.72068 15.6841C9.0225 15.8566 9.25889 16.0287 9.41812 16.1561C9.49758 16.2196 9.55737 16.2717 9.59601 16.3066C9.61532 16.324 9.6293 16.3371 9.63778 16.3452L9.64669 16.3538C9.84194 16.548 10.1587 16.5482 10.3537 16.3535L10.3622 16.3452C10.3707 16.3371 10.3847 16.324 10.404 16.3066C10.4426 16.2717 10.5024 16.2196 10.5819 16.1561C10.7411 16.0287 10.9775 15.8566 11.2793 15.6841C11.885 15.338 12.7369 15 13.75 15C14.7631 15 15.615 15.338 16.2207 15.6841C16.5225 15.8566 16.7589 16.0287 16.9181 16.1561C16.9976 16.2196 17.0574 16.2717 17.096 16.3066C17.1153 16.324 17.1293 16.3371 17.1378 16.3452L17.1464 16.3536L17.1473 16.3544C17.2903 16.4967 17.5049 16.5392 17.6913 16.4619C17.8782 16.3845 18 16.2022 18 16V6C18 5.86739 17.9467 5.73963 17.853 5.64586L17.8522 5.64513L17.8504 5.64327L17.8449 5.63794L17.8274 5.62109C17.8128 5.60719 17.7924 5.58807 17.7663 5.5645C17.7141 5.51736 17.6391 5.45225 17.5428 5.37519C17.3505 5.22132 17.0712 5.01841 16.7168 4.81588C16.01 4.412 14.9869 4 13.75 4C12.5131 4 11.49 4.412 10.7832 4.81588C10.4542 5.00385 10.19 5.19216 10 5.34127C9.80995 5.19216 9.54577 5.00385 9.21682 4.81588C8.51004 4.412 7.48689 4 6.25 4C5.01311 4 3.98996 4.412 3.28318 4.81588C2.92875 5.01841 2.64952 5.22132 2.45718 5.37519C2.36086 5.45225 2.28589 5.51736 2.2337 5.5645C2.2076 5.58807 2.18716 5.60719 2.17257 5.62109L2.15507 5.63794L2.14964 5.64327L2.14776 5.64513L2.14645 5.64645C2.05268 5.74021 2 5.86739 2 6V16C2 16.2022 2.12182 16.3845 2.30866 16.4619ZM3.08188 6.15606C3.05173 6.18018 3.02441 6.20265 3 6.22315V14.9872C3.08817 14.9308 3.18265 14.8733 3.28318 14.8159C3.98996 14.412 5.01311 14 6.25 14C7.48689 14 8.51004 14.412 9.21682 14.8159C9.31735 14.8733 9.41183 14.9308 9.5 14.9872V6.22315C9.47559 6.20265 9.44827 6.18018 9.41812 6.15606C9.25889 6.02868 9.0225 5.85659 8.72068 5.68412C8.11496 5.338 7.26311 5 6.25 5C5.23689 5 4.38504 5.338 3.77932 5.68412C3.4775 5.85659 3.24111 6.02868 3.08188 6.15606ZM10.5 14.9872C10.5882 14.9308 10.6826 14.8733 10.7832 14.8159C11.49 14.412 12.5131 14 13.75 14C14.9869 14 16.01 14.412 16.7168 14.8159C16.8174 14.8733 16.9118 14.9308 17 14.9872V6.22315C16.9756 6.20265 16.9483 6.18018 16.9181 6.15606C16.7589 6.02868 16.5225 5.85659 16.2207 5.68412C15.615 5.338 14.7631 5 13.75 5C12.7369 5 11.885 5.338 11.2793 5.68412C10.9775 5.85659 10.7411 6.02868 10.5819 6.15606C10.5517 6.18018 10.5244 6.20265 10.5 6.22315V14.9872Z" }) }));
}
};
IconBook.iconName = "book";
export default IconBook;