blob: 7b053f4107b2c9ec52d12e9c539ebeb9d4dc48ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
import { Component } from 'react';
import { observer } from 'mobx-react';
import classnames from 'classnames';
import Appear from './effects/Appear';
interface IProps {
className?: string;
text?: string;
}
// TODO - [TS DEBT] Should this file be converted into the coding style similar to './toggle/index.tsx'?
@observer
class StatusBarTargetUrl extends Component<IProps> {
render() {
const { className = '', text = '' } = this.props;
return (
<Appear
className={classnames({
'status-bar-target-url': true,
[`${className}`]: true,
})}
>
<div className="status-bar-target-url__content">{text}</div>
</Appear>
);
}
}
export default StatusBarTargetUrl;
|