@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
17 lines (16 loc) • 3.58 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconSort = (props) => {
const size = sizeMap[props?.size ?? "m"];
const label = props?.label ?? "Icon";
switch (props?.size) {
case "l":
return (_jsxs("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", { d: "M21.2803 16.7803L17.2803 20.7803C16.9874 21.0732 16.5126 21.0732 16.2197 20.7803L12.2197 16.7803C11.9268 16.4874 11.9268 16.0126 12.2197 15.7197C12.5126 15.4268 12.9874 15.4268 13.2803 15.7197L16 18.4393V3.75C16 3.33579 16.3358 3 16.75 3C17.1642 3 17.5 3.33579 17.5 3.75V18.4393L20.2197 15.7197C20.5126 15.4268 20.9874 15.4268 21.2803 15.7197C21.5732 16.0126 21.5732 16.4874 21.2803 16.7803Z" }), _jsx("path", { d: "M7.78033 3.21967C7.48744 2.92678 7.01256 2.92678 6.71967 3.21967L2.71967 7.21967C2.42678 7.51256 2.42678 7.98744 2.71967 8.28033C3.01256 8.57322 3.48744 8.57322 3.78033 8.28033L6.5 5.56066V20.25C6.5 20.6642 6.83579 21 7.25 21C7.66421 21 8 20.6642 8 20.25V5.56066L10.7197 8.28033C11.0126 8.57322 11.4874 8.57322 11.7803 8.28033C12.0732 7.98744 12.0732 7.51256 11.7803 7.21967L7.78033 3.21967Z" })] }));
case "s":
return (_jsxs("svg", { viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", width: size, height: size, "aria-label": label, role: "img", ...props, children: [_jsx("path", { d: "M11.8536 13.8537C11.6583 14.0489 11.3417 14.0489 11.1465 13.8537L8.14645 10.8538C7.95119 10.6585 7.95118 10.3419 8.14644 10.1466C8.3417 9.95138 8.65828 9.95138 8.85355 10.1466L11 12.293L11.0002 2.49999C11.0002 2.22385 11.2241 2 11.5002 2C11.7763 2 12.0002 2.22387 12.0002 2.50001L12 12.293L14.1464 10.1465C14.3417 9.95128 14.6583 9.95128 14.8536 10.1465C15.0488 10.3418 15.0488 10.6584 14.8536 10.8537L11.8536 13.8537Z" }), _jsx("path", { d: "M4.85355 2.14654C4.65829 1.95128 4.34171 1.95128 4.14645 2.14654L1.14645 5.14654C0.951184 5.34181 0.951184 5.65839 1.14645 5.85365C1.34171 6.04891 1.65829 6.04891 1.85355 5.85365L4.00001 3.70719L4.0001 13.4001C4.0001 13.6762 4.22396 13.9001 4.5001 13.9001C4.77624 13.9001 5.0001 13.6762 5.0001 13.4001L5.00001 3.70721L7.14645 5.85365C7.34171 6.04891 7.65829 6.04891 7.85355 5.85365C8.04882 5.65839 8.04882 5.34181 7.85355 5.14654L4.85355 2.14654Z" })] }));
default:
return (_jsxs("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", { d: "M6.85355 3.14645C6.75979 3.05268 6.63261 3 6.5 3C6.36739 3 6.24021 3.05268 6.14645 3.14645L2.64645 6.64645C2.45118 6.84171 2.45118 7.15829 2.64645 7.35355C2.84171 7.54882 3.15829 7.54882 3.35355 7.35355L6 4.70711V16.5C6 16.7761 6.22386 17 6.5 17C6.77614 17 7 16.7761 7 16.5V4.70711L9.64645 7.35355C9.84171 7.54882 10.1583 7.54882 10.3536 7.35355C10.5488 7.15829 10.5488 6.84171 10.3536 6.64645L6.85355 3.14645Z" }), _jsx("path", { d: "M17.3536 13.3536L13.8536 16.8536C13.6583 17.0488 13.3417 17.0488 13.1464 16.8536L9.64645 13.3536C9.45118 13.1583 9.45118 12.8417 9.64645 12.6464C9.84171 12.4512 10.1583 12.4512 10.3536 12.6464L13 15.2929V3.5C13 3.22386 13.2239 3 13.5 3C13.7761 3 14 3.22386 14 3.5V15.2929L16.6464 12.6464C16.8417 12.4512 17.1583 12.4512 17.3536 12.6464C17.5488 12.8417 17.5488 13.1583 17.3536 13.3536Z" })] }));
}
};
IconSort.iconName = "sort";
export default IconSort;