import React from "react"; import Popper from "popper.js"; import Link from 'next/link'; import { faLanguage } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' // i18n import { useTranslation, useLanguageQuery, LanguageSwitcher } from 'next-export-i18n'; const Dropdown = ({ color }) => { // dropdown props const [dropdownPopoverShow, setDropdownPopoverShow] = React.useState(false); const btnDropdownRef = React.createRef(); const popoverDropdownRef = React.createRef(); const openDropdownPopover = () => { new Popper(btnDropdownRef.current, popoverDropdownRef.current, { placement: "bottom-start" }); setDropdownPopoverShow(true); }; const closeDropdownPopover = () => { setDropdownPopoverShow(false); }; // bg colors let bgColor; color === "white" ? (bgColor = "bg-gray-800") : (bgColor = "bg-" + color + "-500"); return ( <>
> ); }; export default function LangSelector() { return ( <>