import React from 'react' import RavenTextImpl, {FontWeight} from '../utils/raven-text/raven-text' import {FontFamily} from '../utils/raven-text/font-family' import {DEFAULT_STRING_VALUE} from '../../../common/constants' import type {ButtonType} from '../ViewTypes.interface' import {resolveProp} from '../utils/StringUtils' import {TouchableNudgeComponent} from './TouchableNudgeComponent' type BaseButtonProps = { data: ButtonType context: Record } export const BaseButton = ({data, context}: BaseButtonProps) => { const btnText = resolveProp(data.props.title, context, 'string') ?? DEFAULT_STRING_VALUE const fontWeight = resolveProp(data.props.fontWeight, context, 'string') ?? undefined const fontFamily = resolveProp( data.props.fontFamily, context, 'string', ) ?? undefined return ( {btnText} ) }