import React from 'react' import { View } from 'react-native' import { OButton, OText } from '../shared' import { NotFoundSourceParams } from '../../types' import { useTheme } from 'styled-components/native'; import Foundation from 'react-native-vector-icons/Foundation' import { NotFound, NotFoundImage } from './styles' export const NotFoundSource = (props: NotFoundSourceParams) => { const { hideImage, content, btnTitle, btnStyle, conditioned, onClickButton, simple } = props const theme = useTheme(); return ( {!hideImage && !simple && ( )} {content && conditioned && {content}} {content && !conditioned && {content}} {!onClickButton && props.children && ( props.children )} {onClickButton && ( onClickButton()} text={btnTitle} /> )} ) }