mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 06:52:24 +00:00
37 lines
962 B
TypeScript
37 lines
962 B
TypeScript
import { BrandingSettings } from "@zitadel/server";
|
|
import React from "react";
|
|
import { getBrandingSettings, server } from "#/lib/zitadel";
|
|
import { Logo } from "#/ui/Logo";
|
|
|
|
export default async function Template({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
const branding = await getBrandingSettings(server);
|
|
let partial: Partial<BrandingSettings> | undefined;
|
|
if (branding) {
|
|
partial = {
|
|
lightTheme: branding?.lightTheme,
|
|
darkTheme: branding?.darkTheme,
|
|
};
|
|
}
|
|
return (
|
|
<div className="mx-auto flex flex-col items-center space-y-4">
|
|
<div className="relative">
|
|
{branding && (
|
|
<Logo
|
|
lightSrc={branding.lightTheme?.logoUrl}
|
|
darkSrc={branding.darkTheme?.logoUrl}
|
|
height={150}
|
|
width={150}
|
|
/>
|
|
)}
|
|
</div>
|
|
|
|
<div className="w-full">{children}</div>
|
|
<div className="flex flex-row justify-between"></div>
|
|
</div>
|
|
);
|
|
}
|