mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-11-03 20:15:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			362 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			362 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
//@flow
 | 
						|
import * as 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;
 |