UNPKG

hh-ui-components

Version:
11 lines 530 B
import { __assign, __makeTemplateObject, __rest } from "tslib"; import React from "react"; import { styled } from "@storybook/theming"; import { icons } from "./icons"; var Svg = styled.svg(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""]))); export var Icons = function (_a) { var icon = _a.icon, props = __rest(_a, ["icon"]); return (React.createElement(Svg, __assign({ viewBox: "0 0 24 24", width: "", height: "" }, props), icons[icon])); }; var templateObject_1; //# sourceMappingURL=icon.js.map