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