ontinue with the normal page rendering
              } else {
                // User is not an admin, redirect to the login page
                window.location.href = '/admin/login';
              }
            } catch (error) {
              console.error('Error checking admin:', error);
              // Handle error as needed
            }
          } else {
            // Redirect to the login page if access_token is not found
            window.location.href = '/admin/login';
          }
        }

  