import React from 'react'; import { Image, TouchableOpacity, View } from 'react-native'; import { Label } from '@widergy/mobile-ui'; import Colors from '../Colors'; import styles from './styles'; interface Props { sourceImage?: any; title: string; description?: string; children?: any; buttons?: Array; withOpacity?: boolean; descriptionStyle?: object; } const GeneralStep = ({ sourceImage, title, description, children, buttons, withOpacity = false, descriptionStyle, }: Props) => { const renderButton = (action, i) => ( ); return ( {sourceImage && } {children} {buttons?.map(renderButton)} ); }; export default GeneralStep;