import React from 'react';
import {Cover, Content, TabsGradient} from '../../components';
import Animated from 'react-native-reanimated';
import {AuthContext} from '../../routes/authentication';
import {StatusBar} from 'react-native';

/**
 * Profile Screen for a user's logged in profile
 * including posts, messaging, and settings
 */
const ProfileScreen: React.FC = () => {
  const {user} = React.useContext(AuthContext);
  const y = Animated.useValue(0);
  return (
    <>
      <StatusBar />
      <Cover {...{y, user}} />
      <Content {...{y, user}} />
      <TabsGradient />
    </>
  );
};

export default ProfileScreen;
