import React from 'react';
import { Image, Text, View } from 'react-native';
import { styles } from './styles';
export const Error = ({ error }) => {
    if (error) {
        return (<View style={styles.container}>
        <Image source={require('../../assets/img/error-icon.png')} style={styles.icon}/>
        <Text style={styles.text}>Video unavailable</Text>
      </View>);
    }
    return null;
};
//# sourceMappingURL=Error.js.map