add motd to the server page
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 56s

This commit is contained in:
Lee
2024-04-16 21:18:08 +01:00
parent 8ffd865c63
commit f00d6d8ba4
17 changed files with 97 additions and 38 deletions

View File

@ -0,0 +1,15 @@
"use client";
import { useTheme } from "next-themes";
import { MoonIcon } from "./icon/moon-icon";
import { SunIcon } from "./icon/sun-icon";
export function ToggleThemeButton(): JSX.Element {
const { theme, setTheme } = useTheme();
return (
<button className="p-2 rounded-lg" onClick={() => setTheme(theme === "dark" ? "light" : "dark")}>
{theme === "dark" ? <SunIcon /> : <MoonIcon color="#000" />}
</button>
);
}