diff options
Diffstat (limited to 'src/components/ui/StatusBarTargetUrl.tsx')
-rw-r--r-- | src/components/ui/StatusBarTargetUrl.tsx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/components/ui/StatusBarTargetUrl.tsx b/src/components/ui/StatusBarTargetUrl.tsx new file mode 100644 index 000000000..7b053f410 --- /dev/null +++ b/src/components/ui/StatusBarTargetUrl.tsx | |||
@@ -0,0 +1,30 @@ | |||
1 | import { Component } from 'react'; | ||
2 | import { observer } from 'mobx-react'; | ||
3 | import classnames from 'classnames'; | ||
4 | import Appear from './effects/Appear'; | ||
5 | |||
6 | interface IProps { | ||
7 | className?: string; | ||
8 | text?: string; | ||
9 | } | ||
10 | |||
11 | // TODO - [TS DEBT] Should this file be converted into the coding style similar to './toggle/index.tsx'? | ||
12 | @observer | ||
13 | class StatusBarTargetUrl extends Component<IProps> { | ||
14 | render() { | ||
15 | const { className = '', text = '' } = this.props; | ||
16 | |||
17 | return ( | ||
18 | <Appear | ||
19 | className={classnames({ | ||
20 | 'status-bar-target-url': true, | ||
21 | [`${className}`]: true, | ||
22 | })} | ||
23 | > | ||
24 | <div className="status-bar-target-url__content">{text}</div> | ||
25 | </Appear> | ||
26 | ); | ||
27 | } | ||
28 | } | ||
29 | |||
30 | export default StatusBarTargetUrl; | ||