mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 14:19:11 +03:00
18 lines
444 B
TypeScript
18 lines
444 B
TypeScript
import { cn } from 'ui'
|
|
import { LEVELS } from '../DataTable.constants'
|
|
import { getLevelColor } from '../DataTable.utils'
|
|
|
|
export const DataTableColumnLevelIndicator = ({
|
|
value,
|
|
className,
|
|
}: {
|
|
value: (typeof LEVELS)[number]
|
|
className?: string
|
|
}) => {
|
|
return (
|
|
<div className={cn('flex items-center justify-center', className)}>
|
|
<div className={cn('h-2.5 w-2.5 rounded-[2px]', getLevelColor(value).bg)} />
|
|
</div>
|
|
)
|
|
}
|