mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
34 lines
928 B
TypeScript
34 lines
928 B
TypeScript
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
|
import { zodValidator } from '@tanstack/zod-adapter'
|
|
import { z } from 'zod'
|
|
|
|
import { Cloud66ConfigurePage } from './Cloud66ConfigurePage'
|
|
|
|
const Cloud66ConfigurePageQueryParamsSchema = z.object({
|
|
integrationAuthId: z.string(),
|
|
})
|
|
|
|
export const Route = createFileRoute(
|
|
'/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/create',
|
|
)({
|
|
component: Cloud66ConfigurePage,
|
|
validateSearch: zodValidator(Cloud66ConfigurePageQueryParamsSchema),
|
|
beforeLoad: ({ context, params }) => {
|
|
return {
|
|
breadcrumbs: [
|
|
...context.breadcrumbs,
|
|
{
|
|
label: 'Integrations',
|
|
link: linkOptions({
|
|
to: '/secret-manager/$projectId/integrations',
|
|
params,
|
|
}),
|
|
},
|
|
{
|
|
label: 'Cloud 66',
|
|
},
|
|
],
|
|
}
|
|
},
|
|
})
|