Initial commit

This commit is contained in:
2025-11-17 15:28:20 +08:00
commit 0c64279e34
100 changed files with 23827 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
'use client';
import { useTheme } from 'next-themes';
export function ThemeToggle() {
const { theme, setTheme } = useTheme();
const next = theme === 'dark' ? 'light' : 'dark';
return (
<button
type="button"
className="rounded border px-2 py-1 text-xs"
onClick={() => setTheme(next)}
>
{theme === 'dark' ? '☀️' : '🌙'}
</button>
);
}