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

interface IStylesProps {
  styles?: CSSObject;
}

export const StyledAccordion = styled.View`
  width: 100%;
  ${({ styles }: IStylesProps) => styles};
  display: flex;
  flex-direction: column;
`;

export const StyledPanel = styled.View`
  margin-bottom: 16px;
  ${({ styles }: IStylesProps) => styles};
  display: flex;
  flex-direction: column;
  width: 100%;
  /* shadow style Android*/
  background-color: ${theme.neutral200};
  elevation: 4;
`;

export const StyledHeader = styled.TouchableOpacity`
  height: 64px;
  ${({ styles }: IStylesProps) => styles};
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: ${theme.neutral100}; 
  padding: 16px 0 16px 16px;
  border-bottom-width: 1px;
  border-color: ${theme.neutral300};
  border-style: solid;
`;

export const StyledHeaderText = styled.View`
  flex: 1;
`;

export const StyledIcon = styled.View`
  margin: 0 10px 0 15px;
`;

export const StyledContainer = styled.View`
  ${({ styles }: IStylesProps) => styles};
  padding: 16px 16px 32px 16px;
`;

export const HtmlContent = styled(RenderHtml)``;