Scrum4Me/components/shared/code-badge.tsx
Scrum4Me Agent 7ceefd4409 refactor(PBI-49): strip unused component/file args from debugProps in shared/
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 21:33:03 +02:00

22 lines
553 B
TypeScript

import { cn } from '@/lib/utils'
import { debugProps } from '@/lib/debug'
interface CodeBadgeProps {
code: string | null | undefined
className?: string
}
export function CodeBadge({ code, className }: CodeBadgeProps) {
if (!code) return null
return (
<span
{...debugProps('code-badge')}
className={cn(
'inline-flex items-center rounded-md border border-border bg-surface-container px-1.5 py-0.5 font-mono text-[11px] leading-none text-muted-foreground',
className,
)}
>
{code}
</span>
)
}