mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
workers -> compute <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added the Compute experience for deploying, viewing, managing, and monitoring compute instances. - Added Compute navigation, instance detail pages, secrets, logs, deployment dialogs, generated snippets, and CLI commands. - Added filtering, status, availability, and data-loading support for compute instances. - **Updates** - Updated labels, icons, links, feature controls, unified logs, and secret-deletion messaging to use Compute terminology. - Compute routes now replace the previous Workers routes and pages. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
21 lines
572 B
TypeScript
21 lines
572 B
TypeScript
import { cn } from 'ui'
|
|
|
|
import { formatRuntime, getRuntimeMeta } from './Compute.utils'
|
|
|
|
interface RuntimeBadgeProps {
|
|
runtime: string | undefined
|
|
className?: string
|
|
}
|
|
|
|
export const RuntimeBadge = ({ runtime, className }: RuntimeBadgeProps) => {
|
|
const meta = getRuntimeMeta(runtime)
|
|
return (
|
|
<span className={cn('inline-flex items-center gap-2 text-sm text-foreground-light', className)}>
|
|
<span
|
|
className={cn('h-2.5 w-2.5 rounded-[3px]', meta?.swatchClassName ?? 'bg-foreground-muted')}
|
|
/>
|
|
{formatRuntime(runtime)}
|
|
</span>
|
|
)
|
|
}
|