import { TidbDualLayerDataEncryption } from 'dbaas/screens/NextGen/my-tidb-creation/shared/premium-byoc/dual-layer-data-encryption/DualLayerDataEncryptionSection'
import {
  Commonv1beta1ServicePlan,
  V1beta1RegionCloudProvider
} from 'dbaas/services/api-clients/v2025/tidb-management/v1beta2/interface'

interface DualLayerDataEncryptionSectionProps {
  cloudProvider: V1beta1RegionCloudProvider
  regionId: string
  projectId: string
  readOnly?: boolean
}

export function DualLayerDataEncryptionSection({
  cloudProvider,
  regionId,
  projectId,
  readOnly
}: DualLayerDataEncryptionSectionProps) {
  return (
    <TidbDualLayerDataEncryption
      servicePlan={Commonv1beta1ServicePlan.BYOC}
      cloudProvider={cloudProvider}
      regionId={regionId}
      projectId={projectId}
      readOnly={readOnly}
    />
  )
}
