// @flow import React from 'react'; import styled from 'styled-components'; import { IoIosMore } from 'react-icons/io'; import { TextComponent } from './text'; import { RowComponent } from './row'; import { DropdownComponent } from './dropdown'; import theme from '../theme'; const Wrapper = styled.div` display: flex; flex-direction: column; background-color: ${props => props.theme.colors.cardBackgroundColor}; border-radius: 5px; padding: 30px; margin: 20px; position: relative; `; const AllAddresses = styled(TextComponent)` margin-bottom: 2.5px; `; const ValueBox = styled.div` margin-bottom: 15px; margin-right: 25px; `; const Label = styled(TextComponent)` margin: 10px 0; margin-left: -15px; `; const USDValue = styled(TextComponent)` opacity: 0.7; `; const ShieldedValue = styled(Label)` color: ${props => props.theme.colors.activeItem}; `; const SeeMoreButton = styled.button` display: flex; align-items: center; justify-content: center; outline: none; border-radius: 100%; border-width: 1px; border-color: ${props => (props.isOpen ? props.theme.colors.activeItem : props.theme.colors.text)}; background-color: transparent; width: 35px; height: 35px; cursor: pointer; position: absolute; right: 10px; top: 10px; `; type Props = { total: number, shielded: number, transparent: number, dollarValue: number, addresses: string[], }; const formatNumber = number => number.toLocaleString('de-DE'); export const WalletSummaryComponent = ({ total, shielded, transparent, dollarValue, addresses, }: Props) => ( ( )} options={addresses.map(addr => ({ label: addr, onClick: x => x }))} /> );