mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 03:15:06 +03:00
16 lines
389 B
TypeScript
16 lines
389 B
TypeScript
import { Database, ScrollText } from 'lucide-react'
|
|
|
|
import type { QuerySourceId } from '@/data/query-sources/query-source-registry'
|
|
|
|
export const QuerySourceIcon = ({
|
|
source,
|
|
className,
|
|
}: {
|
|
source: QuerySourceId
|
|
className?: string
|
|
}) => {
|
|
const props = { className, size: 16, strokeWidth: 2 }
|
|
|
|
return source === 'logs' ? <ScrollText {...props} /> : <Database {...props} />
|
|
}
|