* chore: adding copyright to all files in web app * chore: update copyright in admin app * chore: copyright comments updated on space app * fix: formatting in files
30 lines
988 B
TypeScript
30 lines
988 B
TypeScript
/**
|
|
* SPDX-FileCopyrightText: 2023-present Plane Software, Inc.
|
|
* SPDX-License-Identifier: LicenseRef-Plane-Commercial
|
|
*
|
|
* Licensed under the Plane Commercial License (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
* https://plane.so/legals/eula
|
|
*
|
|
* DO NOT remove or modify this notice.
|
|
* NOTICE: Proprietary and confidential. Unauthorized use or distribution is prohibited.
|
|
*/
|
|
|
|
import { useTheme } from "next-themes";
|
|
// assets
|
|
import LogoSpinnerDark from "@/app/assets/images/logo-spinner-dark.gif?url";
|
|
import LogoSpinnerLight from "@/app/assets/images/logo-spinner-light.gif?url";
|
|
|
|
export function InstanceLoading() {
|
|
const { resolvedTheme } = useTheme();
|
|
|
|
const logoSrc = resolvedTheme === "dark" ? LogoSpinnerLight : LogoSpinnerDark;
|
|
|
|
return (
|
|
<div className="flex items-center justify-center">
|
|
<img src={logoSrc} alt="logo" className="h-6 w-auto sm:h-11" />
|
|
</div>
|
|
);
|
|
}
|