import { Currency } from "@uniswap/sdk-core"; import React from "react"; import styled from "styled-components/macro"; import CurrencyLogo from "../CurrencyLogo"; const Wrapper = styled.div<{ margin: boolean; sizeraw: number }>` position: relative; display: flex; flex-direction: row; margin-left: ${({ sizeraw, margin }) => margin && (sizeraw / 3 + 8).toString() + "px"}; `; export interface DoubleCurrencyLogoProps { margin?: boolean; size?: number; currency0?: Currency; currency1?: Currency; } const HigherLogo = styled(CurrencyLogo)` z-index: 2; `; const CoveredLogo = styled(CurrencyLogo)<{ sizeraw: number }>` position: absolute; left: ${({ sizeraw }) => "-" + (sizeraw / 2).toString() + "px"} !important; `; export default function DoubleCurrencyLogo({ currency0, currency1, size = 16, margin = false, }: DoubleCurrencyLogoProps) { return ( {currency0 && ( )} {currency1 && ( )} ); }