2021-02-22 02:39:04 +00:00
|
|
|
import { Component } from "inferno";
|
|
|
|
import { PictrsImage } from "./pictrs-image";
|
2020-09-06 16:15:25 +00:00
|
|
|
|
|
|
|
interface BannerIconHeaderProps {
|
|
|
|
banner?: string;
|
|
|
|
icon?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export class BannerIconHeader extends Component<BannerIconHeaderProps, any> {
|
|
|
|
constructor(props: any, context: any) {
|
|
|
|
super(props, context);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div class="position-relative mb-2">
|
2022-01-06 16:26:32 +00:00
|
|
|
{this.props.banner && (
|
|
|
|
<PictrsImage src={this.props.banner} banner alt="" />
|
|
|
|
)}
|
2020-09-06 16:15:25 +00:00
|
|
|
{this.props.icon && (
|
2020-10-14 19:36:37 +00:00
|
|
|
<PictrsImage
|
2020-09-06 16:15:25 +00:00
|
|
|
src={this.props.icon}
|
2020-10-14 19:36:37 +00:00
|
|
|
iconOverlay
|
|
|
|
pushup={!!this.props.banner}
|
2021-02-06 20:20:41 +00:00
|
|
|
alt=""
|
2020-09-06 16:15:25 +00:00
|
|
|
/>
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|