import { createFileRoute, linkOptions } from "@tanstack/react-router"; import { IntegrationsListPageTabs } from "@app/types/integrations"; import { GcpSecretManagerAuthorizePage } from "./GcpSecretManagerAuthorizePage"; export const Route = createFileRoute( "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gcp-secret-manager/authorize" )({ component: GcpSecretManagerAuthorizePage, beforeLoad: ({ context, params }) => { return { breadcrumbs: [ ...context.breadcrumbs, { label: "Integrations", link: linkOptions({ to: "/projects/$projectId/secret-manager/integrations", params, search: { selectedTab: IntegrationsListPageTabs.NativeIntegrations } }) }, { label: "GCP Secret Manager" } ] }; } });