aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/StatusBarTargetUrl.tsx
blob: d969267eb68e9ffd5b53627d1edd02c3865cd1d9 (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;