import React from 'react'; import styled from 'styled-components'; import {Button} from '@material-ui/core'; import Input, {InputProps} from '../Input'; interface TokenInputProps extends InputProps { max: number | string; symbol: string; onSelectMax?: () => void; } const TokenInput: React.FC = ({max, symbol, onChange, onSelectMax, value}) => { return ( {max.toLocaleString()} {symbol} Available {/* {symbol} */}
} onChange={onChange} placeholder="0" value={value} />
); }; /*
*/ const StyledTokenInput = styled.div``; const StyledSpacer = styled.div` width: ${(props) => props.theme.spacing[3]}px; `; const StyledTokenAdornmentWrapper = styled.div` align-items: center; display: flex; `; const StyledMaxText = styled.div` align-items: center; color: #fff; display: flex; font-size: 14px; font-weight: 700; height: 44px; justify-content: flex-end; `; export default TokenInput;