import { AnalyticsBucket, BigQuery, ClickHouse, Database } from 'icons' import { Snowflake } from 'lucide-react' import type { ComponentType, SVGProps } from 'react' import type { DestinationType } from './DestinationPanel/DestinationPanel.types' type DestinationIconComponent = ComponentType & { size?: string | number }> const destinationIconByType: Record = { BigQuery, 'Analytics Bucket': AnalyticsBucket, DuckLake: Database, Snowflake, ClickHouse, } interface DestinationIconProps extends Omit, 'strokeWidth'> { type: DestinationType size?: string | number } export const DestinationIcon = ({ type, ...props }: DestinationIconProps) => { const Icon = destinationIconByType[type] return }