| 1 |
import React from "react"; |
| 2 |
|
| 3 |
const Header = (props) => { |
| 4 |
return ( |
| 5 |
<div |
| 6 |
className={`wprf-control-wrapper wprf-settings-section-header wprf-section-header wprf-direction-${props?.direction}`} |
| 7 |
> |
| 8 |
{props?.icon ? ( |
| 9 |
<div |
| 10 |
className="wprf-icon header-icon" |
| 11 |
dangerouslySetInnerHTML={{ __html: props?.icon }} |
| 12 |
/> |
| 13 |
) : ( |
| 14 |
"" |
| 15 |
)} |
| 16 |
<div className="wprf-content"> |
| 17 |
<h4 |
| 18 |
className="wprf-title" |
| 19 |
dangerouslySetInnerHTML={{ __html: props.title }} |
| 20 |
/> |
| 21 |
<p |
| 22 |
className="wprf-description" |
| 23 |
dangerouslySetInnerHTML={{ __html: props.description }} |
| 24 |
/> |
| 25 |
</div> |
| 26 |
{props?.links ? ( |
| 27 |
<div className="wprf-link-wrapper"> |
| 28 |
{props?.links?.map((link) => ( |
| 29 |
<a |
| 30 |
href={link?.url} |
| 31 |
target="_blank" |
| 32 |
dangerouslySetInnerHTML={{ __html: link?.label }} |
| 33 |
/> |
| 34 |
))} |
| 35 |
</div> |
| 36 |
) : ( |
| 37 |
"" |
| 38 |
)} |
| 39 |
</div> |
| 40 |
); |
| 41 |
}; |
| 42 |
|
| 43 |
export default Header; |
| 44 |
|