import { AuthenticatedLayout } from "./AuthenticatedLayout.tsx"; export interface AppCard { id: string; name: string; description: string; domain: string; role: string; } export const AppLaunchpadPage = ({ apps, isAdmin, }: { apps: AppCard[]; isAdmin: boolean; }) => { return (

Application Launchpad

Single sign-on authorized workloads and microservices.

{apps.length === 0 ? (

No Authorized Applications

You do not have active role grants for any workloads.

) : ( apps.map((app) => { const isAdminRole = app.role === "Admin" || app.role === "Global Admin"; const targetUrl = app.domain.startsWith("http") ? app.domain : `https://${app.domain}`; return (
{app.name.charAt(0).toUpperCase()}

{app.name}

{app.domain}
{app.role}

{app.description || "Zero-trust secured internal application."}

Launch App
); }) )}
); };