2024-05-15 16:39:16 +00:00
|
|
|
import Image from "next/image";
|
|
|
|
import { useTheme } from "next-themes";
|
|
|
|
// assets
|
|
|
|
import LogoSpinnerDark from "@/public/images/logo-spinner-dark.gif";
|
|
|
|
import LogoSpinnerLight from "@/public/images/logo-spinner-light.gif";
|
|
|
|
|
|
|
|
export const LogoSpinner = () => {
|
|
|
|
const { resolvedTheme } = useTheme();
|
|
|
|
|
|
|
|
const logoSrc = resolvedTheme === "dark" ? LogoSpinnerDark : LogoSpinnerLight;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="flex items-center justify-center">
|
2024-05-16 18:05:53 +00:00
|
|
|
<Image src={logoSrc} alt="logo" className="size-16 sm:size-20 mr-2" />
|
2024-05-15 16:39:16 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|