UNPKG

@redocly/theme

Version:

Shared UI components lib

26 lines (25 loc) 1.41 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TrashCanIcon = 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: "M7 6H6V12H7V6Z" }), react_1.default.createElement("path", { d: "M10 6H9V12H10V6Z" }), react_1.default.createElement("path", { d: "M2 3V4H3V14C3 14.2652 3.10536 14.5196 3.29289 14.7071C3.48043 14.8946 3.73478 15 4 15H12C12.2652 15 12.5196 14.8946 12.7071 14.7071C12.8946 14.5196 13 14.2652 13 14V4H14V3H2ZM4 14V4H12V14H4Z" }), react_1.default.createElement("path", { d: "M10 1H6V2H10V1Z" }))); exports.TrashCanIcon = (0, styled_components_1.default)(Icon).attrs(() => ({ 'data-component-name': 'icons/TrashCanIcon/TrashCanIcon', })) ` path { fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)}; } height: ${({ size }) => size || '16px'}; width: ${({ size }) => size || '16px'}; cursor: pointer; `; //# sourceMappingURL=TrashCanIcon.js.map