feat: update payment views

This commit is contained in:
2025-12-06 20:42:10 +01:00
parent ce4d5ba013
commit 37164b560f
49 changed files with 1826 additions and 624 deletions

View File

@@ -0,0 +1,34 @@
import { GalleryVerticalEnd } from "lucide-react";
import { Controller } from "@/lib/controller.tsx";
import { User } from "@/services/user.ts";
type Tenant = {
name: string;
logo: React.ElementType;
domain: string;
};
export class AppSiderbarController extends Controller<{
tenant: Tenant;
}> {
async onInit() {
const user = await User.resolve();
if (user === undefined) {
return {
tenant: {
name: "Zitadel",
logo: GalleryVerticalEnd,
domain: "iam.valkyrjs.com",
},
};
}
return {
tenant: {
name: user.tenant.name,
logo: GalleryVerticalEnd,
domain: user.tenant.domain,
},
};
}
}