mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 19:15:52 +01:00
19 lines
359 B
JavaScript
19 lines
359 B
JavaScript
//@flow
|
|
import React from "react";
|
|
import { withContextPath } from "../urls";
|
|
|
|
type Props = {
|
|
src: string,
|
|
alt: string,
|
|
className: any
|
|
};
|
|
|
|
class Image extends React.Component<Props> {
|
|
render() {
|
|
const { src, alt, className } = this.props;
|
|
return <img className={className} src={withContextPath(src)} alt={alt} />;
|
|
}
|
|
}
|
|
|
|
export default Image;
|