/**
* Copyright (C) 2026 SofĂa Aritz and contributors
*
* This file is part of Everest.
*
* Everest is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* Everest is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* Everest. If not, see .
*/
"use client";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { useRouter } from "next/navigation";
export function ProfileDropdown({ did, handle, avatar }: { did: string, handle: string; avatar: string }) {
const router = useRouter();
async function handleLogout() {
await fetch("/atproto/oauth/logout", { method: "POST" });
router.refresh();
}
async function handleProfile() {
window.location.href = `/profile/${did}`;
}
return (
My accountProfileSettings
Sign out
);
}