'use client'; import { X, History } from 'lucide-react'; import { cn } from '@/lib/utils'; // Assuming this exists or I'll use the local cn interface LogsOverlayProps { show: boolean; onClose: () => void; logs: any[]; inventory: any[]; } export default function LogsOverlay({ show, onClose, logs, inventory }: LogsOverlayProps) { if (!show) return null; return (
Live transaction log from cloud
No transactions found
{log.action}
by {log.username || 'System'}{new Date(log.timestamp).toLocaleString()}
{log.details && ( {log.details} )}0 ? "text-tertiary" : "text-error" }`}> {log.quantity_change > 0 ? '+' : ''}{log.quantity_change}