mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
19 lines
413 B
JavaScript
19 lines
413 B
JavaScript
import React from 'react';
|
|
|
|
export default function NodesError({children, faIconClass, hidden}) {
|
|
let classNames = 'nodes-chart-error';
|
|
if (hidden) {
|
|
classNames += ' hide';
|
|
}
|
|
const iconClassName = `fa ${faIconClass}`;
|
|
|
|
return (
|
|
<div className={classNames}>
|
|
<div className="nodes-chart-error-icon">
|
|
<span className={iconClassName} />
|
|
</div>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|