UNPKG

@botonic/react

Version:

Build Chatbots using React

18 lines 673 B
import { jsx as _jsx } from "react/jsx-runtime"; import styled from 'styled-components'; import { COLORS } from '../constants'; import { renderComponent } from '../util/react'; const SubtitleContainer = styled.div ` font-size: 12px; padding: 0px 15px 10px 15px; color: ${COLORS.MID_GRAY}; `; export const Subtitle = (props) => { const renderBrowser = () => (_jsx(SubtitleContainer, { children: props.children })); const renderNode = () => _jsx("desc", { children: props.children }); return renderComponent({ renderBrowser, renderNode }); }; Subtitle.serialize = (props) => { return { subtitle: props.children }; }; //# sourceMappingURL=subtitle.js.map