import { useAuth } from '../auth/AuthProvider';
import InstructorDashboard from '../components/dashboard/InstructorDashboard';
import StudentDashboard from '../components/dashboard/StudentDashboard';

export const Dashboard = () => {
  const { user } = useAuth();

  return (
    <>
      {user?.type == 'student' && <StudentDashboard />}
      {(user?.type == 'instructor' || user?.type == 'ta') && (
        <InstructorDashboard />
      )}
    </>
  );
};
