feat: replace DropdownMenu with Select component in ModeToggle for improved theme selection

This commit is contained in:
ecwu
2025-01-04 23:29:20 +08:00
parent 236d48e72d
commit 503bf6a9bb
4 changed files with 25 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
import { createContext, useContext, useEffect, useState } from "react";
type Theme = "dark" | "light" | "system";
export type Theme = "dark" | "light" | "system";
type ThemeProviderProps = {
children: React.ReactNode;