diff --git a/components/navbar/user-menu.tsx b/components/navbar/user-menu.tsx
deleted file mode 100644
index 536f72f9..00000000
--- a/components/navbar/user-menu.tsx
+++ /dev/null
@@ -1,181 +0,0 @@
-"use client";
-
-import { useState } from "react";
-import { Circle, LogOut } from "lucide-react";
-import { useSession, signIn, signOut } from "next-auth/react";
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuLabel,
- DropdownMenuSeparator,
- DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu";
-import { Session } from "next-auth";
-
-interface UserMenuProps {
- session: Session | null;
- status: "loading" | "authenticated" | "unauthenticated";
-}
-
-const requestNotificationPermission = async () => {
- try {
- const permission = await Notification.requestPermission();
- return permission === "granted";
- } catch (error) {
- console.error("Error requesting notification permission:", error);
- return false;
- }
-};
-
-export default function UserMenu({ session, status }: UserMenuProps) {
- const [userStatus, setUserStatus] = useState<'online' | 'busy' | 'away'>('online');
-
- // Get user initials
- const getUserInitials = () => {
- if (session?.user?.name) {
- // Split the full name and get initials
- const names = session.user.name.split(' ');
- if (names.length >= 2) {
- return `${names[0][0]}${names[names.length - 1][0]}`.toUpperCase();
- }
- // If only one name, use first two letters
- return names[0].slice(0, 2).toUpperCase();
- }
- return "?";
- };
-
- // Function to get display name
- const getDisplayName = () => {
- return session?.user?.name || "User";
- };
-
- // Status configurations
- const statusConfig = {
- online: {
- color: 'text-green-500',
- label: 'Online',
- notifications: true
- },
- busy: {
- color: 'text-orange-500',
- label: 'Busy',
- notifications: false
- },
- away: {
- color: 'text-gray-500',
- label: 'Away',
- notifications: false
- },
- };
-
- // Handle status change
- const handleStatusChange = async (newStatus: 'online' | 'busy' | 'away') => {
- setUserStatus(newStatus);
-
- if (newStatus !== 'online') {
- const hasPermission = await requestNotificationPermission();
-
- if (hasPermission) {
- // Disable notifications
- if ('serviceWorker' in navigator) {
- const registration = await navigator.serviceWorker.ready;
- await registration.pushManager.getSubscription()?.then(subscription => {
- if (subscription) {
- subscription.unsubscribe();
- }
- });
- }
- }
- } else {
- // Re-enable notifications if going back online
- requestNotificationPermission();
- }
- };
-
- if (status === "authenticated" && session?.user) {
- return (
-