"use client";
import { useSelector } from "react-redux";
import InventoryPage from "./Inner";
import { AuthState } from "../wallet/page";
import { redirect } from "next/navigation";

const page = () => {
  const user = useSelector((state: { auth: AuthState }) => state.auth.user);
  if (!user) {
    redirect("/");
  }
  return (
    <div>
      <InventoryPage />
    </div>
  );
};

export default page;
