phx-react
Version:
PHX REACT
17 lines • 4.49 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.8 3H5.2C3.432 3 2 4.38444 2 6.08778V13.9122C2 15.6156 3.432 17 5.2 17H14.8C16.568 17 18 15.6156 18 13.9122V6.08778C18 4.38444 16.568 3 14.8 3ZM7.2 6.24333C8.216 6.24333 9.048 7.05222 9.048 8.04C9.048 9.02778 8.216 9.83667 7.2 9.83667C6.184 9.83667 5.352 9.02778 5.352 8.04C5.352 7.05222 6.184 6.24333 7.2 6.24333ZM10.296 13.6244C10.224 13.7022 10.112 13.7489 10 13.7489H4.4C4.288 13.7489 4.176 13.7022 4.104 13.6244C4.032 13.5467 3.992 13.4378 4 13.3289C4.136 12.0222 5.208 10.9878 6.552 10.8633C6.976 10.8244 7.416 10.8244 7.84 10.8633C9.184 10.9878 10.264 12.0222 10.392 13.3289C10.408 13.4378 10.368 13.5467 10.296 13.6244ZM15.6 13.6944H14C13.672 13.6944 13.4 13.43 13.4 13.1111C13.4 12.7922 13.672 12.5278 14 12.5278H15.6C15.928 12.5278 16.2 12.7922 16.2 13.1111C16.2 13.43 15.928 13.6944 15.6 13.6944ZM15.6 10.5833H12.4C12.072 10.5833 11.8 10.3189 11.8 10C11.8 9.68111 12.072 9.41667 12.4 9.41667H15.6C15.928 9.41667 16.2 9.68111 16.2 10C16.2 10.3189 15.928 10.5833 15.6 10.5833ZM15.6 7.47222H11.6C11.272 7.47222 11 7.20778 11 6.88889C11 6.57 11.272 6.30556 11.6 6.30556H15.6C15.928 6.30556 16.2 6.57 16.2 6.88889C16.2 7.20778 15.928 7.47222 15.6 7.47222Z', 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.72 17H6.27809C2.99623 17 1.99902 16.0379 1.99902 12.8718V7.12821C1.99902 3.96205 2.99623 3 6.27809 3H13.72C17.0018 3 17.999 3.96205 17.999 7.12821V12.8718C17.999 16.0379 17.0018 17 13.72 17ZM6.27809 4.07692C3.61391 4.07692 3.1153 4.56513 3.1153 7.12821V12.8718C3.1153 15.4349 3.61391 15.9231 6.27809 15.9231H13.72C16.3841 15.9231 16.8827 15.4349 16.8827 12.8718V7.12821C16.8827 4.56513 16.3841 4.07692 13.72 4.07692H6.27809Z', fill: 'currentColor' }),
react_1.default.createElement("path", { d: 'M15.2083 7.66667H11.4874C11.1823 7.66667 10.9293 7.42256 10.9293 7.12821C10.9293 6.83385 11.1823 6.58974 11.4874 6.58974H15.2083C15.5134 6.58974 15.7665 6.83385 15.7665 7.12821C15.7665 7.42256 15.5134 7.66667 15.2083 7.66667Z', fill: 'currentColor' }),
react_1.default.createElement("path", { d: 'M15.2083 10.5385H12.2316C11.9265 10.5385 11.6734 10.2944 11.6734 10C11.6734 9.70564 11.9265 9.46154 12.2316 9.46154H15.2083C15.5134 9.46154 15.7665 9.70564 15.7665 10C15.7665 10.2944 15.5134 10.5385 15.2083 10.5385Z', fill: 'currentColor' }),
react_1.default.createElement("path", { d: 'M15.2083 13.4103H13.72C13.4148 13.4103 13.1618 13.1662 13.1618 12.8718C13.1618 12.5774 13.4148 12.3333 13.72 12.3333H15.2083C15.5134 12.3333 15.7665 12.5774 15.7665 12.8718C15.7665 13.1662 15.5134 13.4103 15.2083 13.4103Z', fill: 'currentColor' }),
react_1.default.createElement("path", { d: 'M7.39433 10.0286C6.34503 10.0286 5.48921 9.20301 5.48921 8.19071C5.48921 7.1784 6.34503 6.35276 7.39433 6.35276C8.44363 6.35276 9.29941 7.1784 9.29941 8.19071C9.29941 9.20301 8.44363 10.0286 7.39433 10.0286ZM7.39433 7.42969C6.9627 7.42969 6.60549 7.7743 6.60549 8.19071C6.60549 8.60711 6.9627 8.95172 7.39433 8.95172C7.82596 8.95172 8.18317 8.60711 8.18317 8.19071C8.18317 7.7743 7.82596 7.42969 7.39433 7.42969Z', fill: 'currentColor' }),
react_1.default.createElement("path", { d: 'M9.99895 13.647C9.71616 13.647 9.47058 13.4388 9.44081 13.1588C9.35895 12.3834 8.71151 11.7588 7.90035 11.687C7.55803 11.6583 7.2157 11.6583 6.87337 11.687C6.06221 11.7588 5.41477 12.3763 5.33291 13.1588C5.30314 13.4532 5.02779 13.6758 4.72268 13.6399C4.41756 13.6111 4.19431 13.3455 4.22407 13.0511C4.35803 11.7588 5.42221 10.7322 6.76919 10.6173C7.17849 10.5814 7.59524 10.5814 8.00454 10.6173C9.34407 10.7393 10.4157 11.766 10.5496 13.0511C10.5794 13.3455 10.3562 13.6111 10.051 13.6399C10.0362 13.647 10.0138 13.647 9.99895 13.647Z', fill: 'currentColor' })));
}
//# sourceMappingURL=nhan-su.js.map