mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 21:51:56 +00:00
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
|
import { zodValidator } from "@tanstack/zod-adapter";
|
|
import { z } from "zod";
|
|
|
|
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
|
|
|
import { GcpSecretManagerConfigurePage } from "./GcpSecretManagerConfigurePage";
|
|
|
|
const GcpConfigurePageQueryParamsSchema = z.object({
|
|
integrationAuthId: z.string()
|
|
});
|
|
|
|
export const Route = createFileRoute(
|
|
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/create"
|
|
)({
|
|
component: GcpSecretManagerConfigurePage,
|
|
validateSearch: zodValidator(GcpConfigurePageQueryParamsSchema),
|
|
beforeLoad: ({ context, params }) => {
|
|
return {
|
|
breadcrumbs: [
|
|
...context.breadcrumbs,
|
|
{
|
|
label: "Integrations",
|
|
link: linkOptions({
|
|
to: "/secret-manager/$projectId/integrations",
|
|
params,
|
|
search: {
|
|
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
|
}
|
|
})
|
|
},
|
|
{
|
|
label: "GCP Secret Manager"
|
|
}
|
|
]
|
|
};
|
|
}
|
|
});
|