mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-07-04 09:20:53 +00:00
19 lines
507 B
TypeScript
19 lines
507 B
TypeScript
"use client";
|
|
|
|
import { SettingsIcon } from "lucide-react";
|
|
import { useTranslations } from "next-intl";
|
|
import { useSettingsStore } from "@/stores/useSettingsStore";
|
|
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
|
|
export function SettingsButton() {
|
|
const t = useTranslations("UserAvatar");
|
|
const { setDialogOpen } = useSettingsStore();
|
|
|
|
return (
|
|
<DropdownMenuItem onClick={() => setDialogOpen(true)}>
|
|
<SettingsIcon />
|
|
{t("Settings")}
|
|
</DropdownMenuItem>
|
|
);
|
|
}
|