Source: pages/managesuggestion.js

import React from "react";
// nodejs library that concatenates classes
import classNames from "classnames";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";

// @material-ui/icons

// core components
import Header from "/components/Header/Header.js";
import Footer from "/components/Footer/Footer.js";
import GridContainer from "/components/Grid/GridContainer.js";
import GridItem from "/components/Grid/GridItem.js";
import Button from "/components/CustomButtons/Button.js";
import HeaderLinks from "/components/Header/HeaderLinks.js";
import Parallax from "/components/Parallax/Parallax.js";
import { useAuth } from "/context/AuthContext";
import { useRouter, Router } from "next/router";
import { useState, useEffect } from "react";
import { fetchPoints } from "/data/retrievesuggestedpoi.js";
import NavPills from "/components/NavPills/NavPills.js";
import UserInfo from "../pages-sections/Profile-Sections/UserInfo";
import AccountInfo from "../pages-sections/Profile-Sections/AccountInfo";
import ToiletSug from "../pages-sections/Manage-Suggestions-Sections/ToiletSug";
import FoodSug from "../pages-sections/Manage-Suggestions-Sections/FoodSug";
import WaterSug from "../pages-sections/Manage-Suggestions-Sections/WaterSug";

import {
  AccountCircle,
  FitnessCenter,
  SettingsApplications,
  Accessibility,
  Wc,
  Fastfood,
  LocalDrink,
} from "@material-ui/icons";

// Sections

import styles from "/styles/jss/nextjs-material-kit/pages/components.js";

const useStyles = makeStyles(styles);

/**
 * The function `ManageSuggestionsPage` renders a page for managing different types of suggestions
 * related to toilets, food, and water.
 * @param props - The `ManageSuggestionsPage` component takes in props as a parameter. Within the
 * component, it uses these props to render different elements on the page.
 * @returns The `ManageSuggestionsPage` component is being returned. It includes a header with links, a
 * parallax image, and a section for managing different types of suggestions (Toilet, Food, Water)
 * using tabs.
 */
export function ManageSuggestionsPage(props) {
  const classes = useStyles();
  const { ...rest } = props;

  return (
    <div>
      <Header
        brand="ThisIsNotFair"
        rightLinks={<HeaderLinks />}
        fixed
        brandlink="/mainmenu"
        color="transparent"
        changeColorOnScroll={{
          height: 400,
          color: "white",
        }}
        {...rest}
      />
      <Parallax image="/img/bg7.jpg">
        <div className={classes.container}>
          <GridContainer>
            <GridItem>
              <div className={classes.brand}>
                <h1 className={classes.title}>Manage Suggestions</h1>
                <h3 className={classes.subtitle}>Manage Suggestions</h3>
              </div>
            </GridItem>
          </GridContainer>
        </div>
      </Parallax>
      <div className={classNames(classes.main, classes.mainRaised)}>
        <GridContainer justify="center">
          <GridItem xs={12} sm={12} md={8} className={classes.navWrapper}>
            <NavPills
              alignCenter
              color="primary"
              tabs={[
                {
                  tabButton: "Toilet Suggestions",
                  tabIcon: Wc,
                  tabContent: <ToiletSug />,
                },
                {
                  tabButton: " Food Suggestions ",
                  tabIcon: Fastfood,
                  tabContent: <FoodSug />,
                },
                {
                  tabButton: "Water Suggestions",
                  tabIcon: LocalDrink,
                  tabContent: <WaterSug />,
                },
              ]}
            />
          </GridItem>
        </GridContainer>
      </div>
    </div>
  );
}