Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { icon, xtraClassName } = this.props;
const iconComp = typeof icon === 'string' ? (predefinedIcons[icon] || faExclamation) : icon;
return (
<div>
<div>
<div>
<h4>
<span>
</span>
{this.props.title}
</h4>
<hr>
{this.props.content &&
<div>
{
typeof this.props.content === 'string'
? <p>{this.props.content}</p> : this.props.content
}
</div>
}
{this.props.children &&</div></div></div>
render() {
const { name, title, contacts, image } = this.props
return (
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<figure>
<img src="{image}">
</figure>
</div>
<div>
<h1>{name}</h1>
<h3>{title}</h3>
</div>
</div>
<div>
<div>
</div></div></div></div></div></div></div>