import styled from 'styled-components/native'
import { IFont } from 'interfaces';
import { theme } from 'data/dataMx';

interface ILabelStyleProps {
  fontFamily: IFont;
  disabled: boolean;
}

interface IRadioStyleProps {
  disabled: boolean;
}


interface IInputStyleProps {
  disabled: boolean;
}

interface IContainerStyleProps {
  fakeFocus: boolean;
}

export const RadioContainer = styled.View`
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 48px;
  padding-left: 8px;
  padding-right: 8px;
  border-color: ${theme.transparent};
  border-width: 4px;
  ${({ fakeFocus }: IContainerStyleProps) => fakeFocus ?
    `border-color: ${theme.tertiary100};
    border-width: 4px;`: null
  }
`;

export const RadioLabel = styled.Text`
  font-family: ${({ fontFamily }: ILabelStyleProps) => fontFamily.main.bold};
  font-size: 16px;
  margin-left: 8px;
  color: ${({ disabled }: ILabelStyleProps) => disabled ? theme.neutral400 : theme.neutral700};
`;

export const RadioInput = styled.View`
  height: 24px;
  width: 24px;
  border-radius: 100px;
  border-width: 2px;
  border-color: ${({ disabled }: IInputStyleProps) => disabled ? theme.neutral400 : theme.neutral700};
  display: flex;
  justify-content: center;
  align-items: center;
`

export const RadioCheck = styled.View`
  height: 12px;
  width: 12px;
  border-radius: 100px;
  background-color: ${({ disabled }: IRadioStyleProps) => disabled ? theme.neutral400 : theme.neutral700};
`
