phx-react
Version:
PHX REACT
12 lines • 3.17 kB
JavaScript
"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: 'M14.6667 2C12.826 2 11.3333 3.49267 11.3333 5.33333C11.3333 7.174 12.826 8.66667 14.6667 8.66667C16.5073 8.66667 18 7.174 18 5.33333C18 3.49267 16.5073 2 14.6667 2ZM15.0573 6.66667L14.1953 5.80467C14.07 5.67933 14 5.51 14 5.33333V4C14 3.632 14.2987 3.33333 14.6667 3.33333C15.0347 3.33333 15.3333 3.632 15.3333 4V5.05733L16 5.724C16.26 5.984 16.26 6.40667 16 6.66667C15.74 6.92667 15.3173 6.92667 15.0573 6.66667ZM8.65667 11.414L2.63467 5.39267C3.24067 4.55333 4.22067 4 5.33333 4H10.1967C10.07 4.42267 10 4.87 10 5.33333C10 7.37667 11.3227 9.114 13.1553 9.744L11.4853 11.414C10.7293 12.1693 9.41267 12.1693 8.65667 11.414ZM18 8.59267V14.6667C18 16.5047 16.5047 18 14.6667 18H5.33333C3.49533 18 2 16.5047 2 14.6667V7.33333C2 7.11867 2.02467 6.91 2.06333 6.706L7.714 12.3567C8.34333 12.986 9.18067 13.3333 10.0713 13.3333C10.962 13.3333 11.7987 12.986 12.428 12.3567L14.7913 9.99333C16.0467 9.96 17.1793 9.43133 18 8.59267Z', 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: 'M18 11.3333V14.6667C18 16.5047 16.5047 18 14.6667 18H5.33333C3.49533 18 2 16.5047 2 14.6667V7.33333C2 5.49533 3.49533 4 5.33333 4H8C8.368 4 8.66667 4.298 8.66667 4.66667C8.66667 5.03533 8.368 5.33333 8 5.33333H5.33333C4.58733 5.33333 3.94267 5.74867 3.59933 6.356L8.65733 11.414C9.41333 12.1693 10.73 12.1693 11.486 11.414L11.7053 11.1947C11.966 10.9353 12.3873 10.9347 12.648 11.1947C12.908 11.456 12.908 11.8773 12.648 12.138L12.4287 12.3567C11.7993 12.9853 10.9627 13.3327 10.072 13.3327C9.18133 13.3327 8.34467 12.9853 7.71533 12.356L3.33467 7.97533V14.666C3.33467 15.7687 4.232 16.666 5.33467 16.666H14.668C15.7707 16.666 16.668 15.7687 16.668 14.666V11.3327C16.668 10.964 16.9667 10.666 17.3347 10.666C17.7027 10.666 18.0013 10.964 18.0013 11.3327L18 11.3333ZM10 6C10 3.794 11.794 2 14 2C16.206 2 18 3.794 18 6C18 8.206 16.206 10 14 10C11.794 10 10 8.206 10 6ZM11.3333 6C11.3333 7.47067 12.5293 8.66667 14 8.66667C15.4707 8.66667 16.6667 7.47067 16.6667 6C16.6667 4.52933 15.4707 3.33333 14 3.33333C12.5293 3.33333 11.3333 4.52933 11.3333 6ZM14.1953 7.138C14.3253 7.268 14.496 7.33333 14.6667 7.33333C14.8373 7.33333 15.008 7.268 15.138 7.138C15.3987 6.87733 15.3987 6.456 15.138 6.19533L14.6667 5.724V4.66667C14.6667 4.298 14.368 4 14 4C13.632 4 13.3333 4.298 13.3333 4.66667V6C13.3333 6.17733 13.4033 6.34667 13.5287 6.47133L14.1953 7.138Z', fill: 'currentColor' })));
}
//# sourceMappingURL=lich-su-gui-mail.js.map