@botonic/react
Version:
Build Chatbots using React
21 lines • 845 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 styled_components_1 = tslib_1.__importDefault(require("styled-components"));
const react_1 = 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, { children: props.children });
const renderNode = () => (0, jsx_runtime_1.jsx)("title", { children: props.children });
return (0, react_1.renderComponent)({ renderBrowser, renderNode });
};
exports.Title = Title;
exports.Title.serialize = (props) => {
return { title: props.children };
};
//# sourceMappingURL=title.js.map
;