UNPKG

@botonic/react

Version:

Build Chatbots using React

16 lines 577 B
import { jsx as _jsx } from "react/jsx-runtime"; import styled from 'styled-components'; import { renderComponent } from '../util/react'; const TitleContainer = styled.div ` font-size: 14px; padding: 10px 15px; `; export const Title = (props) => { const renderBrowser = () => _jsx(TitleContainer, { children: props.children }); const renderNode = () => _jsx("title", { children: props.children }); return renderComponent({ renderBrowser, renderNode }); }; Title.serialize = (props) => { return { title: props.children }; }; //# sourceMappingURL=title.js.map