Gazebo_simulation-Frontend/node_modules/reactstrap/es/CarouselCaption.js
2020-12-21 10:29:31 -05:00

23 lines
827 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules } from './utils';
var CarouselCaption = function CarouselCaption(props) {
var captionHeader = props.captionHeader,
captionText = props.captionText,
cssModule = props.cssModule,
className = props.className;
var classes = mapToCssModules(classNames(className, 'carousel-caption', 'd-none', 'd-md-block'), cssModule);
return React.createElement("div", {
className: classes
}, React.createElement("h3", null, captionHeader), React.createElement("p", null, captionText));
};
CarouselCaption.propTypes = {
captionHeader: PropTypes.node,
captionText: PropTypes.node.isRequired,
cssModule: PropTypes.object,
className: PropTypes.string
};
export default CarouselCaption;