import React from "react"; import { SyncLog } from "../../types"; import { X } from "lucide-react"; interface SyncLogsPanelProps { showLogs: boolean; syncLogs: SyncLog[]; onClose?: () => void; } export default function SyncLogsPanel({ showLogs, syncLogs, onClose }: SyncLogsPanelProps) { if (!showLogs) return null; return (
Workspace Handshake Logs {onClose && ( )}
{syncLogs.map((log) => (
[{log.timestamp.split("T")[1]?.slice(0, 8)}]{" "} {log.text}
))}
); }