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

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

export const TruncateContainer = styled.View`
  flex-shrink: 1;
`;

export const Truncate = styled.Text`
  ${({ styles }) => styles};
  text-align: ${({ align }: IStylesProps) => align};
  color: ${({ color }: IStylesProps) => color};
  font-family: ${({ font }: IStylesProps) => font};
  font-weight: ${({ fontWeight }: IStylesProps) => fontWeight };
  font-size: ${({ size }: IStylesProps) => size};
`;
