bootstrap-4-react
Version:
Bootstrap 4 React components
24 lines (17 loc) • 610 B
JSX
import React, { Component } from 'react';
import { withClassName } from '../utilities';
import { BBlockquote, BFooter } from './dom';
class _Blockquote extends Component {
render() {
return <BBlockquote {...this.props}>{this.props.children}</BBlockquote>
}
}
class _BlockquoteFooter extends Component {
render() {
return <BFooter {...this.props}>{this.props.children}</BFooter>
}
}
const Blockquote = withClassName('blockquote')(_Blockquote);
const BlockquoteFooter = withClassName('blockquote-footer')(_BlockquoteFooter);
Blockquote.Footer = BlockquoteFooter;
export default Blockquote;