import React from "react";
import { StyleSheet,View, Text } from "react-native";
import { Title } from "react-native-paper";

export default function ErrorDisplay({ errorMessage }) {
  return (
    <View >
      <Title style={localStyles.alert}>{errorMessage}</Title>
      {/* <Text>{errorMessage}</Text> */}
    </View>
  );
}
const localStyles = StyleSheet.create({
  alert: {
    color: "red",
    textAlign: "center",
    margin: 8,
    padding: 8,
  },
});
