mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 06:34:57 +00:00
feature: secret sync base + aws parameter store & github
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import { SecretSyncEditFields } from "@app/components/secret-syncs/types";
|
||||
import { Modal, ModalContent } from "@app/components/v2";
|
||||
import { TSecretSync } from "@app/hooks/api/secretSyncs";
|
||||
|
||||
import { EditSecretSyncForm } from "./forms";
|
||||
import { SecretSyncModalHeader } from "./SecretSyncModalHeader";
|
||||
|
||||
type Props = {
|
||||
isOpen: boolean;
|
||||
onOpenChange: (isOpen: boolean) => void;
|
||||
secretSync?: TSecretSync;
|
||||
fields: SecretSyncEditFields;
|
||||
};
|
||||
|
||||
export const EditSecretSyncModal = ({ secretSync, onOpenChange, fields, ...props }: Props) => {
|
||||
if (!secretSync) return null;
|
||||
|
||||
return (
|
||||
<Modal {...props} onOpenChange={onOpenChange}>
|
||||
<ModalContent
|
||||
title={<SecretSyncModalHeader isConfigured destination={secretSync.destination} />}
|
||||
className="max-w-2xl"
|
||||
bodyClassName="overflow-visible"
|
||||
>
|
||||
<EditSecretSyncForm
|
||||
onComplete={() => onOpenChange(false)}
|
||||
fields={fields}
|
||||
secretSync={secretSync}
|
||||
/>
|
||||
</ModalContent>
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user