mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
19 lines
497 B
TypeScript
19 lines
497 B
TypeScript
"use client";
|
|
|
|
import { Settings } from "lucide-react";
|
|
import { useSettingsStore } from "@/stores/useSettingsStore";
|
|
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
import { useTranslations } from "next-intl";
|
|
|
|
export function SettingsButton() {
|
|
const { setDialogOpen } = useSettingsStore();
|
|
const t = useTranslations('settings');
|
|
|
|
return (
|
|
<DropdownMenuItem onClick={() => setDialogOpen(true)}>
|
|
<Settings />
|
|
{t('settings')}
|
|
</DropdownMenuItem>
|
|
);
|
|
}
|