-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathUnlockPanelFooter.tsx
More file actions
45 lines (35 loc) · 1.48 KB
/
UnlockPanelFooter.tsx
File metadata and controls
45 lines (35 loc) · 1.48 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { h } from '@stencil/core';
import { Icon } from 'common/Icon';
import styles from './unlockPanelFooter.styles'
import unlockPanelWalletImg from '../../../../../assets/unlock-panel-wallet.webp';
export function UnlockPanelFooter({ walletAddress }: { walletAddress: string }) {
const handleWalletClick = (event: MouseEvent) => {
event.preventDefault();
event.stopPropagation();
window.open(walletAddress, '_blank');
};
const noProtocolWalletAddress = String(walletAddress).replace('https://', '');
return (
<div class={styles.unlockPanelFooter} onClick={handleWalletClick}>
<img src={unlockPanelWalletImg} class={styles.unlockPanelFooterImage} />
<div class={styles.unlockPanelFooterWrapper}>
<div class={styles.unlockPanelFooterTitle}>Don't have a wallet?</div>
<div class={{ [styles.unlockPanelFooterSubtitle]: true, [styles.unlockPanelFooterSubtitleDesktop]: true }}>
Take full control of <br /> your assets.
</div>
<div class={{ [styles.unlockPanelFooterSubtitle]: true, [styles.unlockPanelFooterSubtitleMobile]: true }}>
<span>See which one to get on </span>
<a
target="_blank"
rel="noopener noreferrer"
class={styles.unlockPanelFooterSubtitleLink}
href={walletAddress}
>
{noProtocolWalletAddress}
</a>
</div>
<Icon name="arrow-up-right" class={styles.unlockButton} />
</div>
</div >
);
}