import { Menu } from "@headlessui/react"; import { toast } from "react-hot-toast"; import { useChatStore, useMessageStore } from "@/store"; import Icon from "../Icon"; const Header = () => { const chatStore = useChatStore(); const messageStore = useMessageStore(); const currentChat = chatStore.currentChat; const handleClearMessage = () => { messageStore.clearMessage((message) => message.chatId !== currentChat?.id); toast.success("Message cleared"); }; return (