openreplay/frontend/app/components/Errors/Error/IconCard.js
Shekar Siri 2ed5cac986
Webpack upgrade and dependency cleanup (#523)
* change(ui) - webpack update
* change(ui) - api optimize and other fixes
2022-06-03 16:47:38 +02:00

20 lines
No EOL
510 B
JavaScript

import React from 'react';
import cn from 'classnames';
import { Icon } from 'UI';
function IconCard({ className, title, text, icon, avatarIcon }) {
return (
<div className={ cn(className, "flex items-center") }>
{ avatarIcon && avatarIcon}
{ !avatarIcon && <Icon name={ icon } size={27} /> }
<div className="ml-2 leading-none">
<h6> { title } </h6>
<span className="font-thin text-sm"> { text }</span>
</div>
</div>
);
}
IconCard.displayName = "IconCard";
export default IconCard;