UNPKG

@botonic/react

Version:

Build Chatbots using React

9 lines 491 B
import { jsx as _jsx } from "react/jsx-runtime"; import React from 'react'; import { renderComponent } from '../util/react'; export const ShareButton = props => { const renderBrowser = () => null; const renderNode = () => (_jsx("button", Object.assign({ type: 'element_share' }, { children: _jsx("pre", { dangerouslySetInnerHTML: { __html: JSON.stringify(props.payload) } }) }))); return renderComponent({ renderBrowser, renderNode }); }; //# sourceMappingURL=share-button.js.map