import React from 'react' import { View } from 'react-native' import { useTheme } from 'styled-components/native' import { OButton, OIcon, OText } from '../shared' import { NotFound, NotFoundImage } from './styles' export const NotFoundSource = (props: any) => { const { image, content, btnTitle, conditioned, onClickButton } = props const theme = useTheme(); const errorImage = image || theme.images.general.notFound return ( {errorImage && ( )} {content && conditioned && !errorImage && {content}} {content && !conditioned && {content}} {!onClickButton && props.children && ( props.children )} {onClickButton && ( onClickButton()} text={btnTitle} textStyle={{color: theme.colors.white}} /> )} ) }