import { BigQuery, ClickHouse, Database } from 'icons' import { CircleHelpIcon, SnowflakeIcon } from 'lucide-react' import type { ComponentType, SVGProps } from 'react' import type { ReplicationDestinationType } from './ReplicationDiagram/Nodes.utils' type DestinationIconComponent = ComponentType & { size?: string | number }> const destinationIconByType: Record = { BigQuery, DuckLake: Database, Snowflake: SnowflakeIcon, ClickHouse, Unknown: CircleHelpIcon, } interface DestinationIconProps extends Omit, 'strokeWidth'> { type: ReplicationDestinationType size?: string | number } export const DestinationIcon = ({ type, ...props }: DestinationIconProps) => { const Icon = destinationIconByType[type] return }