Files
infisical/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/route.tsx
T

39 lines
1.2 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 { AwsSecretManagerConfigurePage } from "./AwsSecretManagerConfigurePage";
const AwsSecretManagerConfigurePageQueryParamsSchema = z.object({
integrationAuthId: z.string()
});
export const Route = createFileRoute(
"/_authenticate/_inject-org-details/_org-layout/projects/secret-management/$projectId/_secret-manager-layout/integrations/aws-secret-manager/create"
)({
component: AwsSecretManagerConfigurePage,
validateSearch: zodValidator(AwsSecretManagerConfigurePageQueryParamsSchema),
beforeLoad: ({ context, params }) => {
return {
breadcrumbs: [
...context.breadcrumbs,
{
label: "Integrations",
link: linkOptions({
to: "/projects/secret-management/$projectId/integrations",
params,
search: {
selectedTab: IntegrationsListPageTabs.NativeIntegrations
}
})
},
{
label: "AWS Secret Manager"
}
]
};
}
});