Files
SCM-Manager/scm-ui-components/packages/ui-components/src/avatar/AvatarWrapper.js

20 lines
393 B
JavaScript
Raw Normal View History

2018-10-18 14:40:35 +02:00
//@flow
2018-10-18 15:20:30 +02:00
import * as React from "react";
2018-10-19 08:44:03 +02:00
import {binder} from "@scm-manager/ui-extensions";
import { EXTENSION_POINT } from "./Avatar";
2018-10-18 14:40:35 +02:00
type Props = {
children: React.Node
};
class AvatarWrapper extends React.Component<Props> {
render() {
if (binder.hasExtension(EXTENSION_POINT)) {
2018-10-18 14:40:35 +02:00
return <>{this.props.children}</>;
}
return null;
}
}
export default AvatarWrapper;