UNPKG

phx-react

Version:

PHX REACT

12 lines 3.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Icon; const tslib_1 = require("tslib"); const react_1 = tslib_1.__importDefault(require("react")); const helper_1 = require("../../helper"); function Icon({ activeColor = 'currentColor', isActive = false, isBoldIcon }) { return isActive || isBoldIcon ? (react_1.default.createElement("svg", { fill: 'none', height: '20', viewBox: '0 0 20 20', width: '20', xmlns: 'http://www.w3.org/2000/svg' }, react_1.default.createElement("path", { d: 'M18 6.66667V7.33333H2V6.66667C2 4.826 3.49267 3.33333 5.33333 3.33333H6V2.66667C6 2.29867 6.29867 2 6.66667 2C7.03467 2 7.33333 2.29867 7.33333 2.66667V3.33333H12.6667V2.66667C12.6667 2.29867 12.9653 2 13.3333 2C13.7013 2 14 2.29867 14 2.66667V3.33333H14.6667C16.5073 3.33333 18 4.826 18 6.66667ZM18 13.3333C18 15.9067 15.906 18 13.3333 18C10.7607 18 8.66667 15.9067 8.66667 13.3333C8.66667 10.76 10.7607 8.66667 13.3333 8.66667C15.906 8.66667 18 10.76 18 13.3333ZM14.6667 13.724L14 13.0573V12C14 11.632 13.7013 11.3333 13.3333 11.3333C12.9653 11.3333 12.6667 11.632 12.6667 12V13.3333C12.6667 13.51 12.7367 13.68 12.862 13.8047L13.724 14.6667C13.984 14.9267 14.4067 14.9267 14.6667 14.6667C14.9267 14.4067 14.9267 13.984 14.6667 13.724ZM7.33333 13.3333C7.33333 11.4473 8.20533 9.76667 9.566 8.66667H2V14.6667C2 16.5073 3.49267 18 5.33333 18H9.566C8.20533 16.9 7.33333 15.2193 7.33333 13.3333Z', fill: isBoldIcon ? (0, helper_1.getBoldIconColor)(isActive) : activeColor }))) : (react_1.default.createElement("svg", { fill: 'none', height: '20', viewBox: '0 0 20 20', width: '20', xmlns: 'http://www.w3.org/2000/svg' }, react_1.default.createElement("path", { d: 'M13.3333 8.69267C10.7607 8.69267 8.66667 10.786 8.66667 13.3593C8.66667 15.918 10.7607 18 13.3333 18C15.906 18 18 15.9067 18 13.3333C18 10.7747 15.906 8.69267 13.3333 8.69267ZM13.3333 16.6667C11.4953 16.6667 10 15.1827 10 13.3593C10 11.5213 11.4953 10.026 13.3333 10.026C15.1713 10.026 16.6667 11.51 16.6667 13.3333C16.6667 15.1713 15.1713 16.6667 13.3333 16.6667ZM14.4713 13.5287C14.732 13.7893 14.732 14.2107 14.4713 14.4713C14.3413 14.6013 14.1707 14.6667 14 14.6667C13.8293 14.6667 13.6587 14.6013 13.5287 14.4713L12.862 13.8047C12.7367 13.6793 12.6667 13.51 12.6667 13.3333V12C12.6667 11.632 12.9647 11.3333 13.3333 11.3333C13.702 11.3333 14 11.632 14 12V13.0573L14.4713 13.5287ZM18 6.66667V8C18 8.368 17.702 8.66667 17.3333 8.66667C16.9647 8.66667 16.6667 8.368 16.6667 8V6.66667C16.6667 5.564 15.7693 4.66667 14.6667 4.66667H5.33333C4.23067 4.66667 3.33333 5.564 3.33333 6.66667V7.33333H9.33333C9.70133 7.33333 10 7.632 10 8C10 8.368 9.70133 8.66667 9.33333 8.66667H3.33333V14.6667C3.33333 15.7693 4.23067 16.6667 5.33333 16.6667H8C8.368 16.6667 8.66667 16.9653 8.66667 17.3333C8.66667 17.7013 8.368 18 8 18H5.33333C3.49533 18 2 16.5047 2 14.6667V6.66667C2 4.82867 3.49533 3.33333 5.33333 3.33333H6V2.66667C6 2.29867 6.29867 2 6.66667 2C7.03467 2 7.33333 2.29867 7.33333 2.66667V3.33333H12.6667V2.66667C12.6667 2.29867 12.9647 2 13.3333 2C13.702 2 14 2.29867 14 2.66667V3.33333H14.6667C16.5047 3.33333 18 4.82867 18 6.66667Z', fill: 'currentColor' }))); } //# sourceMappingURL=cham-cong.js.map