import { useId, type ReactNode } from 'react' import { RadioGroupStacked, RadioGroupStackedItem } from 'ui' export type PipelineDestinationType = 'BigQuery' | 'DuckLake' | 'Snowflake' | 'ClickHouse' const DESTINATIONS: { type: PipelineDestinationType; description: string }[] = [ { type: 'BigQuery', description: 'Replicate changes to BigQuery for analytics and BI' }, { type: 'DuckLake', description: 'Replicate changes to DuckLake for open lakehouse storage' }, { type: 'Snowflake', description: 'Replicate changes to Snowflake for cloud data warehousing' }, { type: 'ClickHouse', description: 'Replicate changes to ClickHouse for real-time analytics' }, ] export const PipelineDestinationSelection = ({ availableDestinations, value, onChange, disabled = false, renderLogo, }: { availableDestinations: PipelineDestinationType[] value: PipelineDestinationType | null onChange: (value: PipelineDestinationType) => void disabled?: boolean renderLogo?: (type: PipelineDestinationType) => ReactNode }) => { const id = useId() const options = DESTINATIONS.filter(({ type }) => availableDestinations.includes(type)) if (options.length === 0) return
No destinations are available.
return (Destination type