| 1 |
import { arrayToClassName } from 'elementor-app/utils/utils.js'; |
| 2 |
|
| 3 |
import Card from 'elementor-app/ui/card/card'; |
| 4 |
|
| 5 |
export default function PanelHeadline( props ) { |
| 6 |
return ( |
| 7 |
<Card.Headline className={ arrayToClassName( [ 'eps-panel__headline', props.className ] ) }> |
| 8 |
{ props.children } |
| 9 |
</Card.Headline> |
| 10 |
); |
| 11 |
} |
| 12 |
|
| 13 |
PanelHeadline.propTypes = { |
| 14 |
className: PropTypes.string, |
| 15 |
children: PropTypes.any.isRequired, |
| 16 |
}; |
| 17 |
|
| 18 |
PanelHeadline.defaultProps = { |
| 19 |
className: '', |
| 20 |
}; |
| 21 |
|