2026-01-27 13:54:22 +05:30
|
|
|
/**
|
|
|
|
|
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
* See the LICENSE file for details.
|
|
|
|
|
*/
|
|
|
|
|
|
2025-07-02 19:43:44 +05:30
|
|
|
import { useTheme } from "next-themes";
|
|
|
|
|
// assets
|
2025-11-06 00:09:35 -08:00
|
|
|
import LogoSpinnerDark from "@/app/assets/images/logo-spinner-dark.gif?url";
|
|
|
|
|
import LogoSpinnerLight from "@/app/assets/images/logo-spinner-light.gif?url";
|
2025-07-02 19:43:44 +05:30
|
|
|
|
2025-11-20 19:09:40 +07:00
|
|
|
export function InstanceLoading() {
|
2025-07-02 19:43:44 +05:30
|
|
|
const { resolvedTheme } = useTheme();
|
2025-08-11 18:46:23 +05:30
|
|
|
|
|
|
|
|
const logoSrc = resolvedTheme === "dark" ? LogoSpinnerLight : LogoSpinnerDark;
|
2025-07-02 19:43:44 +05:30
|
|
|
|
|
|
|
|
return (
|
2025-08-11 18:46:23 +05:30
|
|
|
<div className="flex items-center justify-center">
|
2025-11-13 18:33:18 +05:30
|
|
|
<img src={logoSrc} alt="logo" className="h-6 w-auto sm:h-11" />
|
2025-07-02 19:43:44 +05:30
|
|
|
</div>
|
|
|
|
|
);
|
2025-11-20 19:09:40 +07:00
|
|
|
}
|