mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 23:59:08 +03:00
• found this this is probably the wrong direction • will create a new page for next iteration.
23 lines
640 B
TypeScript
23 lines
640 B
TypeScript
import React from 'react'
|
|
import { GlobeLock } from 'lucide-react'
|
|
import { algorithmDetails, AlgorithmDetail } from './algorithmDetails'
|
|
import { InfoPill } from '../../ui/InfoPill'
|
|
|
|
interface AlgorithmHoverCardProps {
|
|
algorithm: keyof typeof algorithmDetails
|
|
}
|
|
|
|
export const AlgorithmHoverCard: React.FC<AlgorithmHoverCardProps> = ({ algorithm }) => {
|
|
const details: AlgorithmDetail = algorithmDetails[algorithm]
|
|
|
|
return (
|
|
<InfoPill
|
|
label={details.label}
|
|
icon={<GlobeLock className="w-4" strokeWidth={1} />}
|
|
title={details.name}
|
|
description={details.description}
|
|
links={details.links}
|
|
/>
|
|
)
|
|
}
|