mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
20 lines
393 B
JavaScript
20 lines
393 B
JavaScript
//@flow
|
|
import * as React from "react";
|
|
import {binder} from "@scm-manager/ui-extensions";
|
|
import { EXTENSION_POINT } from "./Avatar";
|
|
|
|
type Props = {
|
|
children: React.Node
|
|
};
|
|
|
|
class AvatarWrapper extends React.Component<Props> {
|
|
render() {
|
|
if (binder.hasExtension(EXTENSION_POINT)) {
|
|
return <>{this.props.children}</>;
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
|
|
export default AvatarWrapper;
|