import styled from "styled-components/native";
import { CSSObject } from "styled-components";
import { colors } from "data/dataMx";
import RenderHtml from "react-native-render-html";

export interface IStylesProps {
  font: string;
  color: colors;
  align: string;
  styles?: CSSObject;
}

export const BodyXLarge = styled.Text`
  ${({ styles }) => styles};
  font-family: ${({ font }: IStylesProps) => font};
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0px;
  text-align: ${({ align }: IStylesProps) => align};
  color: ${({ color }: IStylesProps) => color};
`;

export const BodyLarge = styled.Text`
  ${({ styles }) => styles};
  font-family: ${({ font }: IStylesProps) => font};
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  text-align: ${({ align }: IStylesProps) => align};
  color: ${({ color }: IStylesProps) => color};
`;

export const BodyMedium = styled.Text`
  ${({ styles }) => styles};
  font-family: ${({ font }: IStylesProps) => font};
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0px;
  text-align: ${({ align }: IStylesProps) => align};
  color: ${({ color }: IStylesProps) => color};
`;

export const BodySmall = styled.Text`
  ${({ styles }) => styles};
  font-family: ${({ font }: IStylesProps) => font};
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0px;
  text-align: ${({ align }: IStylesProps) => align};
  color: ${({ color }: IStylesProps) => color};
`;

export const BodyXSmall = styled.Text`
  ${({ styles }) => styles};
  font-family: ${({ font }: IStylesProps) => font};
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.2px;
  text-align: ${({ align }: IStylesProps) => align};
  color: ${({ color }: IStylesProps) => color};
`;

export const HtmlContent = styled(RenderHtml)``;
