@botonic/react
Version:
Build Chatbots using React
17 lines • 670 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
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, Object.assign({ style: Object.assign({}, props.style) }, { children: props.children })));
const renderNode = () => _jsx("title", { children: props.children });
return renderComponent({ renderBrowser, renderNode });
};
Title.serialize = titleProps => {
return { title: titleProps.children };
};
//# sourceMappingURL=title.js.map