"use client";
import { useSelector } from "react-redux";
import InnerNew from "./InnerNew";
import "./style.css";
import { User } from "@/constants/types";
import { redirect } from "next/navigation";
import { useEffect } from "react";
const page = () => {
  // const user = useSelector((state: any) => state.auth.user) as User | null;
  // useEffect(() => {
  //   setTimeout(() => {
  //     if (!user) {
  //       redirect("/");
  //     }
  //   }, 5000);
  // }, []);
  return (
    <div>
      <InnerNew />
    </div>
  );
};

export default page;
