import { faEye } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { GenericFieldLabel } from "@app/components/secret-syncs"; import { Badge, Table, TBody, Td, Th, THead, Tooltip, Tr } from "@app/components/v2"; import { TAwsSecretsManagerSync } from "@app/hooks/api/secretSyncs/types/aws-secrets-manager-sync"; type Props = { secretSync: TAwsSecretsManagerSync; }; export const AwsSecretsManagerSyncOptionsSection = ({ secretSync }: Props) => { const { syncOptions: { keyId, tags, syncSecretMetadataAsTags } } = secretSync; return ( <> {keyId && {keyId}} {tags && tags.length > 0 && ( Key Value {tags.map((tag) => ( {tag.key} {tag.value} ))} } > {tags.length} Tag{tags.length > 1 ? "s" : ""} )} {syncSecretMetadataAsTags && ( Enabled )} > ); };