import { useEffect } from "react";
import { PersonCircle } from "react-bootstrap-icons";
import { Dropdown, DropdownOptions } from 'flowbite';
import UserAccountDropdownMenu from "./user_account_dropdown_menu";
export default function UserDropdownButton() {
useEffect(() => {
const target = document.getElementById("userAccountDropdownMenu");
const trigger = document.getElementById("userAccountButton");
const options: DropdownOptions = {
triggerType: 'click',
placement: 'bottom'
};
const dropdown_menu = new Dropdown(target, trigger, options);
trigger?.addEventListener("click", () => {
if(dropdown_menu.isVisible())
dropdown_menu.show();
});
}, []);
return (
<>
>
);
}