mirror of
https://github.com/woodchen-ink/Q58Connect.git
synced 2025-07-18 14:01:55 +08:00
13 lines
321 B
TypeScript
13 lines
321 B
TypeScript
"use client";
|
|
|
|
import Image from "next/image";
|
|
import { useTheme } from "next-themes";
|
|
|
|
export default function DynamicLogo() {
|
|
const { resolvedTheme } = useTheme();
|
|
|
|
const logoSrc = resolvedTheme === "dark" ? "/logo-dark.png" : "/logo.png";
|
|
|
|
return <Image src={logoSrc} alt="Q58 Logo" width={48} height={48} />;
|
|
}
|