import { ExternalLink, Package } from 'lucide-react' import { Link } from '@tanstack/react-router' import { Card, CardContent, CardFooter, CardHeader, CardTitle } from '@/components/ui/card' import { Button } from '@/components/ui/button' import { StatusBadge } from './StatusBadge' import type { InventoryItem } from '@/lib/api' import { cn } from '@/lib/utils' interface ItemCardProps { item: InventoryItem className?: string } export function ItemCard({ item, className }: ItemCardProps) { const netboxUrl = `http://netbox.local/dcim/devices/${item.id}/` return ( {/* Photo */} {item.photo_urls.length > 0 ? ( ) : ( )} {/* HW ID */} {item.hw_id || item.asset_tag} {item.name} {item.ai_notes && ( {item.ai_notes} )} e.stopPropagation()} > NetBox ) }
{item.hw_id || item.asset_tag}
{item.ai_notes}