2025-03-03 03:39:02 +00:00
|
|
|
"use client";
|
|
|
|
|
2025-04-15 16:40:36 +00:00
|
|
|
import { SettingsIcon } from "lucide-react";
|
2025-04-15 10:22:21 +00:00
|
|
|
import { useTranslations } from "next-intl";
|
2025-03-21 12:43:33 +00:00
|
|
|
import { useSettingsStore } from "@/stores/useSettingsStore";
|
2025-03-12 13:15:44 +00:00
|
|
|
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
2025-03-03 03:39:02 +00:00
|
|
|
|
2025-03-12 13:15:44 +00:00
|
|
|
export function SettingsButton() {
|
2025-04-15 10:22:21 +00:00
|
|
|
const t = useTranslations("AvatarButton");
|
2025-03-12 03:48:41 +00:00
|
|
|
const { setDialogOpen } = useSettingsStore();
|
|
|
|
|
2025-03-03 03:39:02 +00:00
|
|
|
return (
|
2025-03-12 13:15:44 +00:00
|
|
|
<DropdownMenuItem onClick={() => setDialogOpen(true)}>
|
2025-04-15 16:40:36 +00:00
|
|
|
<SettingsIcon />
|
2025-04-15 10:22:21 +00:00
|
|
|
{t("Settings")}
|
2025-03-12 13:15:44 +00:00
|
|
|
</DropdownMenuItem>
|
2025-03-03 03:39:02 +00:00
|
|
|
);
|
|
|
|
}
|