import { type ReactNode } from "react";
import { View, Text } from "react-native";
import { authStyles } from "./authStyles";

export function AuthFormError({ message }: { message: string }): ReactNode {
  return (
    <View style={authStyles.errorBox}>
      <Text style={authStyles.errorText}>{message}</Text>
    </View>
  );
}
