'use client' import { forwardRef } from 'react' import { cn } from '@/lib/utils' import { CodeBadge } from '@/components/shared/code-badge' import { debugProps } from '@/lib/debug' export const PRIORITY_BORDER: Record = { 1: 'border-l-4 border-l-priority-critical', 2: 'border-l-4 border-l-priority-high', 3: 'border-l-4 border-l-priority-medium', 4: 'border-l-4 border-l-priority-low', } interface BacklogCardProps extends React.HTMLAttributes { title: string priority: number code?: string | null isSelected?: boolean isDragging?: boolean badge?: React.ReactNode actions?: React.ReactNode } export const BacklogCard = forwardRef(function BacklogCard( { title, priority, code, isSelected, isDragging, badge, actions, className, ...rest }, ref ) { return (

{title}

{code && }
{(badge || actions) && (
{badge}
{actions &&
{actions}
}
)}
) })