Skip to content

Commit da64617

Browse files
joeizangAniket-Engg
authored andcommitted
create component for lowlevel icon
1 parent a7cf468 commit da64617

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { CustomTooltip } from '@remix-ui/helper'
2+
import React from 'react'
3+
import { FormattedMessage } from 'react-intl'
4+
5+
export function LowLevelInteractionIcon () {
6+
const version = window.location.href.split('=')[5].split('+')[0].split('-')[1]
7+
8+
return (
9+
<>
10+
<CustomTooltip placement={'bottom-end'} tooltipClasses="text-wrap" tooltipId="receiveEthDocstoolTip" tooltipText={<FormattedMessage id="udapp.tooltipText8" />}>
11+
<a href={`https://solidity.readthedocs.io/en/${version}/contracts.html#receive-ether-function`} target="_blank" rel="noreferrer">
12+
<i aria-hidden="true" className="fas fa-info my-2 mr-1"></i>
13+
</a>
14+
</CustomTooltip>
15+
</>
16+
)
17+
}

0 commit comments

Comments
 (0)