);
diff --git a/src/app/components/not-found.tsx b/src/app/components/not-found.tsx
index 43f8cc7..70e87e5 100644
--- a/src/app/components/not-found.tsx
+++ b/src/app/components/not-found.tsx
@@ -2,7 +2,7 @@ type NotFoundProps = {
message: string;
};
-export function NotFound({ message }: NotFoundProps) {
+export function NotFound({ message }: NotFoundProps): JSX.Element {
return (
Not Found
diff --git a/src/app/components/player/lookup-player.tsx b/src/app/components/player/lookup-player.tsx
index 2d97a1e..4272121 100644
--- a/src/app/components/player/lookup-player.tsx
+++ b/src/app/components/player/lookup-player.tsx
@@ -5,7 +5,7 @@ import { useState } from "react";
import { Button } from "../ui/button";
import { Input } from "../ui/input";
-export function LookupPlayer() {
+export function LookupPlayer(): JSX.Element {
const router = useRouter();
const [player, setPlayer] = useState("");
diff --git a/src/app/components/rediect-button.tsx b/src/app/components/rediect-button.tsx
index 0c8002d..53079fb 100644
--- a/src/app/components/rediect-button.tsx
+++ b/src/app/components/rediect-button.tsx
@@ -3,12 +3,13 @@ import Link from "next/link";
type ButtonProps = {
title: string;
url: string;
+ openInNewTab?: boolean;
};
-export function RedirectButton({ title, url }: ButtonProps) {
+export function RedirectButton({ title, url, openInNewTab }: ButtonProps): JSX.Element {
return (
diff --git a/src/app/components/server/lookup-server.tsx b/src/app/components/server/lookup-server.tsx
index e2374c3..7d1e293 100644
--- a/src/app/components/server/lookup-server.tsx
+++ b/src/app/components/server/lookup-server.tsx
@@ -6,7 +6,7 @@ import { useState } from "react";
import { Button } from "../ui/button";
import { Input } from "../ui/input";
-export function LookupServer() {
+export function LookupServer(): JSX.Element {
const router = useRouter();
const [hostname, setHostname] = useState("");
diff --git a/src/app/components/theme-provider.tsx b/src/app/components/theme-provider.tsx
index 9fd733b..fcd72ba 100644
--- a/src/app/components/theme-provider.tsx
+++ b/src/app/components/theme-provider.tsx
@@ -3,6 +3,6 @@
import { ThemeProvider as NextThemesProvider } from "next-themes";
import { type ThemeProviderProps } from "next-themes/dist/types";
-export default function ThemeProvider({ children, ...props }: ThemeProviderProps) {
+export default function ThemeProvider({ children, ...props }: ThemeProviderProps): JSX.Element {
return
{children};
}
diff --git a/src/app/components/theme-toggle-button.tsx b/src/app/components/theme-toggle-button.tsx
new file mode 100644
index 0000000..9caafe9
--- /dev/null
+++ b/src/app/components/theme-toggle-button.tsx
@@ -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 (
+
+ );
+}