on master help sign in
bridge/src/components/copiable/CopiableAddress.jsx
19 lines 424 B history raw
1import React from 'react';
2import cn from 'classnames';
4import CopiableWithTooltip from './CopiableWithTooltip';
5import { TooltipPosition } from 'components/WithTooltip';
7export default function CopiableAddress({
8 className = '',
9 position = TooltipPosition.Top,
10 ...rest
11}) {
12 return (
13 <CopiableWithTooltip
14 position={position}
15 className={cn(className, 'mono', 'nowrap')}
16 {...rest}
17 />
18 );