@vuduc0801/react-native-phosphor-icons
Version:
Since [Phosphor](https://phosphoricons.com/) does not support React Native, we have to convert all the SVGs to React Native SVGs.
39 lines (37 loc) • 1.19 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = require("react");
var _SlidersHorizontal = _interopRequireDefault(require("../regular/SlidersHorizontal"));
var _SlidersHorizontal2 = _interopRequireDefault(require("../fill/SlidersHorizontal"));
var _SlidersHorizontal3 = _interopRequireDefault(require("../bold/SlidersHorizontal"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
/* Generated code. Do not edit.*/
function SlidersHorizontal(props) {
const {
color = '#000',
size = 24,
weight = 'regular',
mirrored = false,
style
} = props;
const weightMap = {
fill: _SlidersHorizontal2.default,
regular: _SlidersHorizontal.default,
bold: _SlidersHorizontal3.default
};
const IconComponent = (0, _react.useMemo)(() => {
return weightMap[weight];
}, [weight]);
return /*#__PURE__*/React.createElement(IconComponent, {
color: color,
size: size,
style: [style, ...[mirrored && {
transform: 'scaleX(-1)'
}]]
});
}
var _default = exports.default = SlidersHorizontal;
//# sourceMappingURL=SlidersHorizontal.js.map