import styled from "styled-components/native";
import { colors, theme } from "data/dataMx";

interface IStylesProps {
  backgroundColor?: colors;
  background?: string;
  colorLine?: colors;
  textPosition?: string;
  textPositionLeft?: string;
  textPositionTop?: string;
}

export const Container = styled.View`
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: ${({ backgroundColor }: IStylesProps) =>
    backgroundColor || theme.primary};
`;

export const Separator = styled.View`
  margin: 16px;
`;

export const Content = styled.View`
  width: 100%;
  background: ${({ background }: IStylesProps) =>
    background || theme.transparent};
  padding: 0px 8px 0px 16px;
`;

export const BackgroundImage = styled.View`
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: 0;
`;

export const ListWrapper = styled.View`
  flex-direction: row;
  width: 100%;
  padding: 0px;
  margin-right: -8px;
`;

export const Item = styled.View`  
  flex: 1;
  flex-direction: row;
  align-items: center;
  background: ${theme.transparent};
  margin: 0px;
`;

export const ItemLine = styled.View`
  flex: 1;
  border-width: 1px;
  border-color: ${({ colorLine }: IStylesProps) =>
    colorLine || theme.neutral100};
  border-style: solid;
  margin: 8px 0px;
  height: 1px;
`;

export const WrapperReward = styled.View`
  position: relative;
  margin-left: -20px;
  text-align: center;
`;

export const WrapperText = styled.View`
  position: absolute;
  left: ${({ textPositionLeft }: IStylesProps) => textPositionLeft || "27%"};
  right: 20%;
  top: ${({ textPositionTop }: IStylesProps) => textPositionTop || "27%"};
`;
