Files
supabase/apps/studio/components/interfaces/Database/Replication/DestinationIcon.tsx
T
Danny White fbe21d33db feat(studio): remove read replicas from Replication
Make Database → Replication pipelines-only. Replica create/list/diagram nodes move out; legacy destinationType links redirect to Infrastructure.
2026-08-21 11:31:33 +10:00

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} />
}