@redocly/theme
Version:
Shared UI components lib
25 lines (24 loc) • 1.26 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FitToViewIcon = 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: "M1 1H5V2.5H2.5V5H1V1Z" }),
react_1.default.createElement("path", { d: "M15 1H11V2.5H13.5V5H15V1Z" }),
react_1.default.createElement("path", { d: "M1 15H5V13.5H2.5V11H1V15Z" }),
react_1.default.createElement("path", { d: "M15 15H11V13.5H13.5V11H15V15Z" })));
exports.FitToViewIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
'data-component-name': 'icons/FitToViewIcon/FitToViewIcon',
})) `
path {
fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
}
height: ${({ size }) => size || '16px'};
width: ${({ size }) => size || '16px'};
`;
//# sourceMappingURL=FitToViewIcon.js.map