UNPKG

react-facebook-next

Version:

Facebook components like a Login button, Like, Share, Comments or Embedded Post

46 lines (41 loc) 1.03 kB
import React from 'react'; import PropTypes from 'prop-types'; import Parser from './Parser'; export default function CustomChat(props) { var className = props.className, dataRef = props.dataRef, minimized = props.minimized, children = props.children, pageId = props.pageId, onParse = props.onParse; return React.createElement( Parser, { className: className, onParse: onParse }, React.createElement( 'div', { className: 'fb-customerchat', 'data-page_id': pageId, 'data-ref': dataRef, 'data-minimized': minimized }, children ) ); } CustomChat.propTypes = { className: PropTypes.string, dataRef: PropTypes.string, pageId: PropTypes.string.isRequired, minimized: PropTypes.bool, onParse: PropTypes.func, children: PropTypes.node }; CustomChat.defaultProps = { minimized: true, children: undefined, className: undefined, dataRef: undefined, onParse: undefined }; //# sourceMappingURL=CustomChat.js.map