plane/admin/components/common/logo-spinner.tsx

18 lines
559 B
TypeScript
Raw Normal View History

2024-05-15 15:56:57 +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-17 15:02:40 +00:00
<Image src={logoSrc} alt="logo" className="w-[82px] h-[82px] mr-2" priority={false} />
2024-05-15 15:56:57 +00:00
</div>
);
};