import React from 'react';
import {StatusBar} from 'react-native';
import {Content, TabsGradient} from '../../components';
import {RouteProp} from '@react-navigation/native';
import {MainStackParams} from '../../routes/';

type ProfileScreenRouteProps = RouteProp<MainStackParams, 'Profile'>;

interface ProfileOnboardingProps {
  route: ProfileScreenRouteProps;
}

const ProfileScreen: React.FC<ProfileOnboardingProps> = ({route}) => {
  const {screenType} = route.params;
  let {userXId} = route.params;

  return (
    <>
      <StatusBar barStyle="dark-content" />
      <Content {...{userXId, screenType}} />
      <TabsGradient />
    </>
  );
};

export default ProfileScreen;
