forked from cemaden-educacao/WPD-MobileApp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
351 B
16 lines
351 B
import React from "react";
|
|
import { StyleSheet } from "react-native";
|
|
|
|
import Text from "../Text";
|
|
|
|
function ErrorMessage({ error, visible }) {
|
|
if (!visible || !error) return null;
|
|
|
|
return <Text style={styles.error}>{error}</Text>;
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
error: { color: "red", paddingTop: 10 },
|
|
});
|
|
|
|
export default ErrorMessage;
|