import type { FC } from 'react' import React, { memo } from 'react' import { StyleSheet, Text, View } from 'react-native' import { withFadeAnimation } from './HOC/withFadeAnimation' interface NothingFoundProps { emptyResultText?: string } export const NothingFound: FC = memo(({ ...props }) => { const EL = withFadeAnimation( () => ( {props.emptyResultText || 'Nothing found'} ), {}, ) return }) const styles = StyleSheet.create({ container: { padding: 10, }, text: { textAlign: 'center' }, })