import * as React from 'react'; import { FunctionComponent, ReactNode } from 'react'; import { View, Text, Button } from 'react-native'; import { ConfigScreenStyles } from './configScreenStyles'; interface Props { title: string; description?: string; clickHandler: ()=> void; styles: ConfigScreenStyles; disabled?: boolean; statusComponent?: ReactNode; } const SettingsButton: FunctionComponent = props => { const styles = props.styles.styleSheet; let descriptionComp = null; if (props.description) { descriptionComp = ( {props.description} ); } return (