refactor: Update component structure to use behavior and stack attributes, enhancing clarity and functionality across services, tools, and frontends
This commit is contained in:
11
app/src/components/StackBadge.tsx
Normal file
11
app/src/components/StackBadge.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { stackLabel } from "@/lib/labels"
|
||||
|
||||
export function StackBadge({ stack }: { stack: string | null }) {
|
||||
if (!stack) return null
|
||||
|
||||
return (
|
||||
<span className="text-[0.65rem] font-mono px-1.5 py-0.5 rounded bg-[var(--border)] text-[var(--muted)]">
|
||||
{stackLabel(stack)}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user