mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-11 17:42:48 +00:00
37 lines
902 B
TypeScript
37 lines
902 B
TypeScript
import React from 'react';
|
|
import './portrait.scss';
|
|
|
|
interface Props {
|
|
imageSrc: any;
|
|
style?: any;
|
|
}
|
|
|
|
interface State {
|
|
}
|
|
|
|
export class Portrait extends React.Component<Props, State> {
|
|
|
|
componentDidMount() {}
|
|
|
|
render() {
|
|
return (
|
|
<div className="portrait" style={this.props.style}>
|
|
|
|
<div className="hide-tiny">
|
|
<img src={require('../../assets/portrait-top.gif')}/>
|
|
<div>
|
|
<img src={require('../../assets/level-circle.gif')} className="portrait__level-circle"/>
|
|
<img src={require('../../assets/portrait-left.gif')}/>
|
|
<img src={this.props.imageSrc}/>
|
|
<img src={require('../../assets/portrait-right.gif')}/>
|
|
</div>
|
|
<img src={require('../../assets/portrait-bot.gif')}/>
|
|
</div>
|
|
|
|
<img className="hide-large portrait__tiny" src={this.props.imageSrc}/>
|
|
|
|
</div>
|
|
);
|
|
}
|
|
}
|