import React from "react";
import { Button, HStack, Link, Text } from "@chakra-ui/react";
import navItems, { NavItem } from "./navItems";

const DesktopNav = (): JSX.Element => {
  return (
    <HStack
      as="nav"
      display={{ base: "none", lg: "flex" }}
      h="auto"
      w="auto"
      spacing={4}
      // m="auto"
      justifyContent="center"
      alignContent="center"
      alignItems="center"
    >
      {navItems.map((navItem: NavItem) => {
        return (
          <Link id={"dekstop-" + navItem[0]} key={navItem[0]} href={navItem[1]}>
            <Button variant="nav">
              <Text>{navItem[0]}</Text>
            </Button>
          </Link>
        );
      })}
    </HStack>
  );
};

export default DesktopNav;
