mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
19 lines
357 B
JavaScript
19 lines
357 B
JavaScript
|
|
//@flow
|
||
|
|
import React from "react";
|
||
|
|
import { binder } from "@scm-manager/ui-extensions";
|
||
|
|
|
||
|
|
type Props = {
|
||
|
|
children: React.Node
|
||
|
|
};
|
||
|
|
|
||
|
|
class AvatarWrapper extends React.Component<Props> {
|
||
|
|
render() {
|
||
|
|
if (binder.hasExtension("changeset.avatar-factory")) {
|
||
|
|
return <>{this.props.children}</>;
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default AvatarWrapper;
|