import { styled } from "styled-components"; import { CopyButton } from "./CopyButton"; import { Box, Flex, FlexProps } from "../Box"; interface CopyAddressProps extends FlexProps { account: string | undefined; tooltipMessage: string; } const Wrapper = styled(Flex)` align-items: center; background-color: ${({ theme }) => theme.colors.dropdown}; border-radius: 16px; position: relative; `; const Address = styled.div` flex: 1; position: relative; padding-left: 16px; & > input { background: transparent; border: 0; color: ${({ theme }) => theme.colors.text}; display: block; font-weight: 600; font-size: 16px; padding: 0; width: 100%; &:focus { outline: 0; } } &:after { background: linear-gradient( to right, ${({ theme }) => theme.colors.background}00, ${({ theme }) => theme.colors.background}E6 ); content: ""; height: 100%; pointer-events: none; position: absolute; right: 0; top: 0; width: 40px; } `; export const CopyAddress: React.FC> = ({ account, tooltipMessage, ...props }) => { return (
); };