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

19 lines
388 B
TypeScript
Raw Normal View History

import * as React from 'react';
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;
2018-10-18 14:40:35 +02:00
};
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;