import React, { useContext } from "react";
import { Text, Button } from "react-native";
import ScreenLayout from "../components/layout/ScreenLayout";
import { AuthContext } from "../context/AuthContext";

export default function HomeScreen() {
  const { logout } = useContext(AuthContext);

  return (
    <ScreenLayout>
      <Text>Welcome Home!</Text>
      <Button title="Logout" onPress={() => void logout()} />
    </ScreenLayout>
  );
}
