"use client"; import axios from "axios"; import * as React from 'react'; import { useEffect, useState } from "react"; import { useSession } from "next-auth/react"; const RedemptionsPage = () => { const { data: session, status } = useSession(); const [previousUsername, setPreviousUsername] = useState() useEffect(() => { if (status !== "authenticated" || previousUsername == session.user?.name) { return } setPreviousUsername(session.user?.name) axios.get("/api/settings/redemptions/actions") }, [session]) return (
); } export default RedemptionsPage;