// withHooks
// noPage

import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';

import React from 'react';
import { Text, View } from 'react-native';


export interface MarketInput_labelProps {
  label: string,
  mandatory?: boolean,
  mandatoryColor?: string
}
export default function m(props: MarketInput_labelProps): any {
  return (
    <View style={{ flexDirection: 'row', alignItems: 'center' }} >
      <LibTextstyle text={props.label} textStyle="caption1" style={{ paddingLeft: 0, marginBottom: 5, color: "#000" }} />
      {props.mandatory && <Text allowFontScaling={false} style={{ fontFamily: "Arial", fontSize: 14, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, color: props.mandatoryColor ? props.mandatoryColor : "#d0021b", marginBottom: 8 }}> *</Text>}
    </View>
  )
}