phx-react
Version:
PHX REACT
12 lines • 2.69 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = HomeIcon;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const helper_1 = require("../../helper");
function HomeIcon({ 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: 'M16.9456 6.80802L11.7939 2.61601C10.7872 1.80001 9.21419 1.79201 8.21529 2.60801L3.06365 6.80802C2.32433 7.40802 1.87602 8.608 2.03332 9.552L3.02432 15.584C3.25241 16.936 4.48723 18 5.83216 18H14.1692C15.4984 18 16.7568 16.912 16.9849 15.576L17.9759 9.544C18.1175 8.608 17.6692 7.40802 16.9456 6.80802ZM10.5906 14.8C10.5906 15.128 10.3232 15.4 10.0007 15.4C9.67823 15.4 9.41081 15.128 9.41081 14.8V12.4C9.41081 12.072 9.67823 11.8 10.0007 11.8C10.3232 11.8 10.5906 12.072 10.5906 12.4V14.8Z', 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: 'M8.45703 2.90234C9.31244 2.20104 10.6815 2.2046 11.5488 2.91016L11.5498 2.91113L16.7061 7.10449C17.0071 7.35192 17.2664 7.74069 17.4326 8.18555C17.5987 8.63018 17.6593 9.09865 17.5977 9.49023L16.6084 15.5156C16.4146 16.6776 15.3035 17.6211 14.1689 17.6211H5.83594C4.7437 17.6211 3.72606 16.8112 3.44336 15.7412L3.39648 15.5234L2.40723 9.49023L2.40625 9.48633C2.33844 9.09729 2.39667 8.63087 2.56348 8.18652C2.7095 7.79757 2.92922 7.45081 3.18652 7.2041L3.29883 7.10449L8.45605 2.90332L8.45703 2.90234ZM9.99512 2.76074C9.52909 2.76074 9.04607 2.90329 8.67773 3.20117L8.67676 3.20215L3.52051 7.41113C3.24439 7.63688 3.03351 7.98397 2.90332 8.33008C2.77308 8.67631 2.70189 9.07703 2.76074 9.43164L3.75098 15.457V15.459C3.91486 16.4307 4.84981 17.2432 5.83594 17.2432H14.1689C15.156 17.2432 16.0905 16.4292 16.2539 15.4502V15.4492L17.2441 9.42383V9.41992C17.2981 9.07031 17.226 8.66924 17.0967 8.32324C16.9838 8.0213 16.8097 7.71498 16.584 7.49316L16.4844 7.40332L11.3271 3.20898H11.3281C10.9517 2.90262 10.4607 2.76077 9.99512 2.76074ZM10.002 12.0869C10.0918 12.0869 10.1816 12.1688 10.1816 12.2764V14.5469C10.1816 14.6544 10.0918 14.7363 10.002 14.7363C9.91223 14.736 9.82324 14.6542 9.82324 14.5469V12.2764C9.82324 12.169 9.91223 12.0872 10.002 12.0869Z', fill: 'currentColor', stroke: 'currentColor', strokeWidth: '0.757037' })));
}
//# sourceMappingURL=home-icon.js.map