mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 10:55:06 +03:00
Make Database → Replication pipelines-only. Replica create/list/diagram nodes move out; legacy destinationType links redirect to Infrastructure.
27 lines
846 B
TypeScript
27 lines
846 B
TypeScript
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<SVGProps<SVGSVGElement> & { size?: string | number }>
|
|
|
|
const destinationIconByType: Record<DestinationType, DestinationIconComponent> = {
|
|
BigQuery,
|
|
'Analytics Bucket': AnalyticsBucket,
|
|
DuckLake: Database,
|
|
Snowflake,
|
|
ClickHouse,
|
|
}
|
|
|
|
interface DestinationIconProps extends Omit<SVGProps<SVGSVGElement>, 'strokeWidth'> {
|
|
type: DestinationType
|
|
size?: string | number
|
|
}
|
|
|
|
export const DestinationIcon = ({ type, ...props }: DestinationIconProps) => {
|
|
const Icon = destinationIconByType[type]
|
|
|
|
return <Icon {...props} strokeWidth={1.5} />
|
|
}
|