UNPKG

@redocly/theme

Version:

Shared UI components lib

23 lines (22 loc) 1.15 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MinimizeIcon = void 0; const react_1 = __importDefault(require("react")); const styled_components_1 = __importDefault(require("styled-components")); const utils_1 = require("../../core/utils"); const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), react_1.default.createElement("path", { d: "M2 9V10H5.293L1 14.291L1.707 15L6 10.707V14H7V9H2Z" }), react_1.default.createElement("path", { d: "M15 1.708L14.296 1L10 5.293V2H9V7H14V6H10.707L15 1.708Z" }))); exports.MinimizeIcon = (0, styled_components_1.default)(Icon).attrs(() => ({ 'data-component-name': 'icons/MinimizeIcon/MinimizeIcon', })) ` path { fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)}; } height: ${({ size }) => size || '16px'}; width: ${({ size }) => size || '16px'}; `; //# sourceMappingURL=MinimizeIcon.js.map