@botonic/react
Version:
Build Chatbots using React
22 lines • 970 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Title = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = tslib_1.__importDefault(require("react"));
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
const react_2 = require("../util/react");
const TitleContainer = styled_components_1.default.div `
font-size: 14px;
padding: 10px 15px;
`;
const Title = props => {
const renderBrowser = () => ((0, jsx_runtime_1.jsx)(TitleContainer, Object.assign({ style: Object.assign({}, props.style) }, { children: props.children })));
const renderNode = () => (0, jsx_runtime_1.jsx)("title", { children: props.children });
return (0, react_2.renderComponent)({ renderBrowser, renderNode });
};
exports.Title = Title;
exports.Title.serialize = titleProps => {
return { title: titleProps.children };
};
//# sourceMappingURL=title.js.map