aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/StatusBarTargetUrl.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ui/StatusBarTargetUrl.tsx')
-rw-r--r--src/components/ui/StatusBarTargetUrl.tsx30
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 @@
1import { Component } from 'react';
2import { observer } from 'mobx-react';
3import classnames from 'classnames';
4import Appear from './effects/Appear';
5
6interface 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
13class 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
30export default StatusBarTargetUrl;