import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { EmptyViewProps } from './types'; import Button from '../Button'; import { Fonts } from '../../styles'; import { ColorType } from '../../common/types'; import { useColors } from '../../themes'; const EmptyView = (props: EmptyViewProps) => { const { illustration, title, titleStyle, subTitle, subTitleStyle, actionTitle, actionPress, } = props; const Colors = useColors(); const styles = getStyles(Colors); const renderIllustration = () => { if (illustration) { return illustration; } return ( ); }; return ( {renderIllustration()} {title} {subTitle}