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

interface IStylesProps {
  align: string;
  color: colors;
  font: string;
  fontWeight: number;
  letterSpacing: string;
  lineHeight: string;
  size: string;
  styles?: CSSObject;
}

export const CaptionStyle = styled.Text`
  ${({ styles }) => styles};
  color: ${({ color }: IStylesProps) => color};
  font-family: ${({ font }: IStylesProps) => font};
  font-size: ${({ size }: IStylesProps) => size};
  font-weight: ${({ fontWeight }: IStylesProps) => fontWeight };
  letter-spacing: ${({ letterSpacing }: IStylesProps) => letterSpacing};
  line-height: ${({ lineHeight }: IStylesProps) => lineHeight};
  text-align: ${({ align }: IStylesProps) => align};
`;

export const HtmlContent = styled(RenderHtml)``;
