| 1 |
import React, { Component } from 'react'; |
| 2 |
import MPHBModule from '../../../components/MPHBModule'; |
| 3 |
|
| 4 |
class MPHB_Divi_Accommodation_Type_Attributes_Module extends Component { |
| 5 |
|
| 6 |
static slug = 'mphb-divi-accommodation-type-attributes'; |
| 7 |
|
| 8 |
render() { |
| 9 |
|
| 10 |
if ( ! this.props.__html ) { |
| 11 |
return <MPHBModule |
| 12 |
name={ this.props.name } |
| 13 |
/> |
| 14 |
} |
| 15 |
|
| 16 |
return <div dangerouslySetInnerHTML={ { __html: this.props.__html } }></div>; |
| 17 |
|
| 18 |
} |
| 19 |
|
| 20 |
} |
| 21 |
|
| 22 |
export default MPHB_Divi_Accommodation_Type_Attributes_Module; |