2019-10-20 18:02:52 +02:00
|
|
|
import React from "react";
|
|
|
|
|
import { ExtensionPoint } from "@scm-manager/ui-extensions";
|
|
|
|
|
import { Plugin } from "@scm-manager/ui-types";
|
|
|
|
|
import { Image } from "@scm-manager/ui-components";
|
2019-10-19 16:38:07 +02:00
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
plugin: Plugin;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default class PluginAvatar extends React.Component<Props> {
|
|
|
|
|
render() {
|
|
|
|
|
const { plugin } = this.props;
|
|
|
|
|
return (
|
|
|
|
|
<p className="image is-64x64">
|
|
|
|
|
<ExtensionPoint
|
|
|
|
|
name="plugins.plugin-avatar"
|
|
|
|
|
props={{
|
2019-10-20 18:02:52 +02:00
|
|
|
plugin
|
2019-10-19 16:38:07 +02:00
|
|
|
}}
|
|
|
|
|
>
|
2019-10-21 10:57:56 +02:00
|
|
|
<Image src={plugin.avatarUrl ? plugin.avatarUrl : "/images/blib.jpg"} alt="Logo" />
|
2019-10-19 16:38:07 +02:00
|
|
|
</ExtensionPoint>
|
|
|
|
|
</p>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|