@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 2.42 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", { 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: "M7.375 4.5A7.3 7.3 0 0 0 2.22 6.635a.75.75 0 0 0-.22.53V18.75a.75.75 0 0 0 1.28.53 5.79 5.79 0 0 1 8.226.034.747.747 0 0 0 1.024-.034 5.79 5.79 0 0 1 8.19 0 .75.75 0 0 0 1.28-.53V7.166a.75.75 0 0 0-.22-.53A7.29 7.29 0 0 0 12 6.154 7.3 7.3 0 0 0 7.375 4.5m3.875 2.988a5.79 5.79 0 0 0-7.75 0v9.711a7.29 7.29 0 0 1 7.75 0zm3.159-1.047A5.79 5.79 0 0 1 20.5 7.488v9.711a7.29 7.29 0 0 0-7.75 0V7.488a5.8 5.8 0 0 1 1.659-1.047", 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: "M2.309 16.462a.5.5 0 0 0 .544-.108l.01-.009.041-.038q.058-.054.178-.15c.16-.128.396-.3.697-.473C4.385 15.338 5.237 15 6.25 15s1.865.338 2.47.684a5.5 5.5 0 0 1 .876.623l.042.038.009.009a.5.5 0 0 0 .707 0l.008-.009.042-.038a5.47 5.47 0 0 1 .875-.622c.606-.347 1.458-.685 2.471-.685s1.865.338 2.47.684a5.5 5.5 0 0 1 .876.623l.042.038.008.009h.001A.5.5 0 0 0 18 16V6a.5.5 0 0 0-.147-.354l-.003-.003-.005-.005-.018-.017-.06-.057a6.47 6.47 0 0 0-1.05-.749C16.01 4.413 14.987 4 13.75 4s-2.26.412-2.967.816A6.5 6.5 0 0 0 10 5.34a6.5 6.5 0 0 0-.783-.525C8.51 4.412 7.487 4 6.25 4s-2.26.412-2.967.816a6.5 6.5 0 0 0-1.05.749l-.06.056-.018.017-.005.005-.002.002-.002.001A.5.5 0 0 0 2 6v10a.5.5 0 0 0 .309.462m.773-10.306L3 6.223v8.764q.132-.085.283-.171C3.99 14.412 5.013 14 6.25 14s2.26.412 2.967.816q.15.086.283.171V6.223l-.082-.067a5.5 5.5 0 0 0-.697-.472C8.115 5.338 7.263 5 6.25 5s-1.865.338-2.47.684a5.5 5.5 0 0 0-.698.472m7.418 8.831q.132-.085.283-.171c.707-.404 1.73-.816 2.967-.816s2.26.412 2.967.816q.15.086.283.171V6.223l-.082-.067a5.5 5.5 0 0 0-.697-.472C15.615 5.338 14.763 5 13.75 5s-1.865.338-2.47.684a5.5 5.5 0 0 0-.78.54z", clipRule: "evenodd" }) }));
}
};
IconBook.iconName = "book";
export default IconBook;