import styled from 'styled-components/native';
import { IInputAlign } from './InputPhoneTypes';

interface IStylesProps {
  align: IInputAlign;
}

export const InputPhone = styled.TouchableOpacity`
  display: flex;
  flex-direction:${({ align }: IStylesProps) => align == 'colum' ? 'column' : 'row'};
  width: 100%;
`;

export const ContainerInput = styled.View`
  padding: 0;
  display: flex;
  padding-left:${({ align }: IStylesProps) => align == 'colum' ? '0' : align == 'default' ? '11px' : '6px'};
  margin-top:${({ align }: IStylesProps) => align == 'colum' ? '17px' : '0'};
  width: ${({ align }: IStylesProps) => align == 'colum' ? '100%' : align == 'default' ? '50%' : 'auto'};
  flex:1
`;

export const ContainerCountryPicker = styled.View`
  padding: 0;
  display: flex;
  padding-right:${({ align }: IStylesProps) => align == 'colum' ? '0' : align == 'default' ? '11px' : '6px'};
  width: ${({ align }: IStylesProps) => align == 'short' ? '180px' :  align == 'colum' ? '100%' : '50%'};
  z-index: 2;
  position: relative;
  min-width:150px
`;


