| 1 |
import { arrayToClassName } from 'elementor-app/utils/utils.js'; |
| 2 |
|
| 3 |
import Card from 'elementor-app/ui/card/card'; |
| 4 |
import Collapse from 'elementor-app/molecules/collapse'; |
| 5 |
|
| 6 |
export default function PanelBody( props ) { |
| 7 |
return ( |
| 8 |
<Collapse.Content> |
| 9 |
<Card.Body padding={ props.padding } className={ arrayToClassName( [ 'eps-panel__body', props.className ] ) }> |
| 10 |
{ props.children } |
| 11 |
</Card.Body> |
| 12 |
</Collapse.Content> |
| 13 |
); |
| 14 |
} |
| 15 |
|
| 16 |
PanelBody.propTypes = { |
| 17 |
className: PropTypes.string, |
| 18 |
padding: PropTypes.string, |
| 19 |
children: PropTypes.any.isRequired, |
| 20 |
}; |
| 21 |
|
| 22 |
PanelBody.defaultProps = { |
| 23 |
className: '', |
| 24 |
padding: '0', |
| 25 |
}; |
| 26 |
|