UNPKG

react-video-call

Version:

ReactVideoCall is a simple yet powerful WebRTC-based video call component for React. It uses Firebase for signaling and supports both desktop and mobile views with minimal setup.

21 lines 1.17 kB
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; import React from 'react'; import icons from './icons'; import "../../index.css"; export const Icon = (_a) => { var { className, type, title, style } = _a, props = __rest(_a, ["className", "type", "title", "style"]); const svgIcon = icons[type] || null; return (React.createElement(React.Fragment, null, svgIcon && (React.createElement("i", Object.assign({ style: style !== null && style !== void 0 ? style : {}, className: `select-none custIcon custIcon-${type} ${className !== null && className !== void 0 ? className : ''}`, title: title !== null && title !== void 0 ? title : ' ' }, props), svgIcon)))); }; export default Icon; //# sourceMappingURL=index.js.map