import styled from 'styled-components/native';
import { theme } from 'data/dataMx';

interface IStylesProps {
  isAvailable?: boolean;
}

export const HeaderContainer = styled.View`
  box-shadow: 0px 5px 16px ${theme.neutral300};
  padding-top: 4px;
  padding-bottom: ${({ isAvailable }: IStylesProps) =>
    isAvailable ? '8px' : '20px'};
  padding-left: 16px;
  padding-right: 16px;
  background-color: ${theme.neutral100};
`;

export const NotLoggedContainer = styled.View`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
`;

export const LoginRegisterButtons = styled.View`
  display: flex;
  flex-direction: row;
`;

export const LoggedContainer = styled.View`
  align-items: center;
`;

export const HeaderElements = styled.View`
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
`;

export const UserProfile = styled.TouchableOpacity`
  background-color: ${theme.neutral300};
  width: 36px;
  height: 36px;
  border-radius: 50;
  display: flex;
  align-items: center;
  justify-content: center;
`;

export const UserProfileContainer = styled.View`
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  flex-shrink: 1;
`;

export const UserNameAndIcon = styled.View`
  flex-direction: row;
  align-items: center;
  margin-left: 1%;
  margin-right: 10%;
  flex-shrink: 1;
`;
