stream-chat-react-native-core
Version:
The official React Native and Expo components for Stream Chat, a service for building chat applications
43 lines • 2.83 kB
JavaScript
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Picture = exports.PhotoIcon = void 0;
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
var _react = _interopRequireDefault(require("react"));
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
var _jsxRuntime = require("react/jsx-runtime");
var _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/icons/image.tsx";
var _excluded = ["fill", "height", "pathFill", "size", "stroke", "width"];
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
var Picture = props => {
var _ref, _ref2;
var fill = props.fill,
height = props.height,
pathFill = props.pathFill,
size = props.size,
stroke = props.stroke,
width = props.width,
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
var color = (_ref = (_ref2 = stroke != null ? stroke : fill) != null ? _ref2 : pathFill) != null ? _ref : 'black';
return (0, _jsxRuntime.jsx)(_reactNativeSvg.default, {
fill: "none",
viewBox: "0 0 20 20",
height: height != null ? height : size,
width: width != null ? width : size,
...rest,
children: (0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
d: "M4.42891 16.875L12.9953 8.30781C13.0534 8.2497 13.1223 8.2036 13.1982 8.17215C13.274 8.1407 13.3554 8.12451 13.4375 8.12451C13.5196 8.12451 13.601 8.1407 13.6768 8.17215C13.7527 8.2036 13.8216 8.2497 13.8797 8.30781L16.875 11.3039M3.75 3.125H16.25C16.5952 3.125 16.875 3.40482 16.875 3.75V16.25C16.875 16.5952 16.5952 16.875 16.25 16.875H3.75C3.40482 16.875 3.125 16.5952 3.125 16.25V3.75C3.125 3.40482 3.40482 3.125 3.75 3.125ZM8.75 7.5C8.75 8.19036 8.19036 8.75 7.5 8.75C6.80964 8.75 6.25 8.19036 6.25 7.5C6.25 6.80964 6.80964 6.25 7.5 6.25C8.19036 6.25 8.75 6.80964 8.75 7.5Z",
stroke: color,
strokeWidth: 1.5,
strokeLinecap: "round",
strokeLinejoin: "round"
})
});
};
exports.Picture = Picture;
var PhotoIcon = props => (0, _jsxRuntime.jsx)(Picture, {
...props
});
exports.PhotoIcon = PhotoIcon;
//# sourceMappingURL=image.js.map