Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 | 3x 3x 30x 5x 20x 5x 30x 5x 20x 5x 30x 5x 20x 5x 14x 13x 12x 14x 14x 26x 12x 12x 26x 10x 2x 8x 8x 6x 2x 2x 14x 7x 8x 8x 8x 7x 2x 2x 5x 3x 5x 3x 2x 37x 37x 37x 37x 30x 26x 30x 30x 37x 26x 26x 37x 35x 33x 37x 33x 37x 37x 37x 37x 1x 26x 30x 2x 4x 2x 2x 1x 1x 1x 1x 14x 14x 15x 8x 8x 8x 8x 14x 14x 14x 14x 13x 14x 15x 14x 14x 56x 56x 56x 56x 49x 7x 7x 2x 2x 56x 2x 14x 15x 14x 15x 14x 15x 14x 15x 14x | import {
AlertCircle,
AlertTriangle,
Info,
X,
Plus,
Eye,
EyeOff,
} from "lucide-react";
import { Button } from "@/components/ui/button";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import type { ParserMessage, IOPinRecord } from "@shared/schema";
import { clsx } from "clsx";
import { useState } from "react";
import * as React from "react";
// Type alias for severity levels (S4323 - avoid union types)
type SeverityLevel = 1 | 2 | 3;
// Module-level constants (not re-created on every render)
const PWM_PINS = new Set([3, 5, 6, 9, 10, 11]);
const HIDE_SCROLLBAR_STYLE = `
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; width: 0; height: 0; }
`;
// Module-level pure helpers — fix S6481 (no re-creation on render)
function getSeverityIcon(severity: SeverityLevel): JSX.Element {
switch (severity) {
case 1:
return <Info className="w-4 h-4 text-blue-400" />;
case 2:
return <AlertTriangle className="w-4 h-4 text-yellow-400" />;
case 3:
return <AlertCircle className="w-4 h-4 text-red-400" />;
}
}
function getSeverityLabel(severity: SeverityLevel): string {
switch (severity) {
case 1:
return "Info";
case 2:
return "Warning";
case 3:
return "Error";
}
}
function getSeverityColor(severity: SeverityLevel): string {
switch (severity) {
case 1:
return "rgb(96 165 250)"; // blue-400
case 2:
return "rgb(250 204 21)"; // yellow-400
case 3:
return "rgb(248 113 113)"; // red-400
}
}
/** Returns an RX/TX badge element for pin 0/1, or null. Fixes S1940 IIFE anti-pattern. */
function getRxTxBadge(pin: string): JSX.Element | null {
if (pin === "0") return <span className="text-blue-400 text-ui-xs font-semibold">RX</span>;
if (pin === "1") return <span className="text-red-400 text-ui-xs font-semibold">TX</span>;
return null;
}
/** Returns a PWM tilde element for PWM-capable pins, or null. Fixes S1940 IIFE anti-pattern. */
function getPwmTilde(pin: string): JSX.Element | null {
const n = Number.parseInt(pin, 10);
return !Number.isNaN(n) && PWM_PINS.has(n)
? <span className="text-yellow-400">~</span>
: null;
}
// Module-level pure pin-operation helpers (fix S6481 — no useCallback needed)
function hasPinModeInfo(record: IOPinRecord): boolean {
return record.defined || (record.pinModeLines?.length ?? 0) > 0;
}
function hasReadOperations(record: IOPinRecord): boolean {
return (record.digitalReadLines?.length ?? 0) > 0 || (record.analogReadLines?.length ?? 0) > 0;
}
function hasWriteOperations(record: IOPinRecord): boolean {
return (record.digitalWriteLines?.length ?? 0) > 0 || (record.analogWriteLines?.length ?? 0) > 0;
}
function isPinProgrammed(record: IOPinRecord): boolean {
return (
hasPinModeInfo(record) ||
hasReadOperations(record) ||
hasWriteOperations(record) ||
(record.usedAt?.length ?? 0) > 0
);
}
// Helper to convert pin mode number to label
function getPinModeLabel(modeNum: number): string {
switch (modeNum) {
case 0:
return "INPUT";
case 1:
return "OUTPUT";
case 2:
return "INPUT_PULLUP";
default:
return "UNKNOWN";
}
}
/** Returns tailwind color class for a named pin mode string. Fixes S3358 (nested ternary). */
function getPinModeColor(mode: string): string {
if (mode === "INPUT") return "text-blue-400";
Eif (mode === "OUTPUT") return "text-orange-400";
return "text-green-400";
}
/** Returns tailwind color class for a numeric pin mode value. Fixes S3358 (nested ternary). */
function getPinModeLegacyColor(pinMode: number): string {
Iif (pinMode === 0) return "text-blue-400";
Eif (pinMode === 1) return "text-orange-400";
return "text-green-400";
}
/** Renders the pinMode cell with proper fallbacks. Module-level = no re-creation on render (fixes S6481). */
function renderPinModeCell(
record: IOPinRecord,
pmModes: string[],
uniqueModes: string[],
hasConflict: boolean,
showDetail: boolean,
ops: Array<{ operation: string }>,
): JSX.Element {
if (pmModes.length > 0) {
return (
<div className="space-y-0.5 text-center">
{uniqueModes.map((mode) => {
const modeColor = getPinModeColor(mode);
const modeLines = showDetail
? record.pinModeLines?.filter(
(_, li) => record.pinModeModes?.[li] === mode,
)
: undefined;
return (
<div key={`mode-${mode}-${record.pin}`} className="flex flex-col items-center">
<div className="flex items-center justify-center gap-1">
<span className={modeColor}>{mode}</span>
{hasConflict && (
<span className="text-red-400 font-bold" title={record.conflictMessage}>!</span>
)}
</div>
{modeLines && modeLines.length > 0 && (
<div className="text-ui-xs text-blue-400">
{modeLines.map((l) => (l === "runtime" ? "runtime" : `L${l}`)).join(", ")}
</div>
)}
</div>
);
})}
</div>
);
}
if (record.defined && record.pinMode !== undefined) {
const modeColor = getPinModeLegacyColor(record.pinMode);
return (
<div className="text-center">
<span className={modeColor}>{getPinModeLabel(record.pinMode)}</span>
</div>
);
}
const hasDigitalOps = ops.some(
(u) => u.operation.includes("digitalRead") || u.operation.includes("digitalWrite"),
);
if (
(record.digitalReadLines?.length ?? 0) > 0 ||
(record.digitalWriteLines?.length ?? 0) > 0 ||
hasDigitalOps
) {
return (
<div className="flex items-center justify-center" title="pinMode() missing">
<X className="w-4 h-4 text-red-500" />
</div>
);
}
return <span className="text-gray-400">—</span>;
}
interface ParserOutputProps {
readonly messages: ParserMessage[];
readonly ioRegistry?: IOPinRecord[];
readonly onClear: () => void;
readonly onGoToLine?: (line: number) => void;
readonly onInsertSuggestion?: (suggestion: string, line?: number) => void;
readonly hideHeader?: boolean;
readonly defaultTab?: "messages" | "registry";
readonly messagesContainerRef?: React.RefObject<HTMLDivElement>;
}
export function ParserOutput({
messages,
ioRegistry = [],
onClear,
onGoToLine,
onInsertSuggestion,
hideHeader = false,
defaultTab = "messages",
messagesContainerRef,
}: ParserOutputProps) {
const [activeTab, setActiveTab] = useState<"messages" | "registry">(
defaultTab,
);
const [showAllPins, setShowAllPins] = useState(false);
/** detailView: false = compact (✓/—), true = extended (line numbers). Eye-button toggle per SSOT. */
const [detailView, setDetailView] = useState(false);
// Do NOT auto-switch tabs - let user control which tab they want to see
// Previously this auto-switched to registry when no messages, but that was confusing
// Group messages by category for better organization
const messagesByCategory = messages.reduce(
(acc, msg) => {
if (!acc[msg.category]) {
acc[msg.category] = [];
}
acc[msg.category].push(msg);
return acc;
},
{} as Record<string, ParserMessage[]>,
);
const getCategoryLabel = (category: string): string => {
const labels: Record<string, string> = {
serial: "Serial Configuration",
structure: "Code Structure",
hardware: "Hardware Compatibility",
pins: "Pin Conflicts",
performance: "Performance Issues",
};
return labels[category] || category;
};
// Filter pins: show only programmed pins by default, all pins if showAllPins is true
const filteredRegistry = React.useMemo(() => {
if (showAllPins) return ioRegistry;
return ioRegistry.filter(isPinProgrammed);
}, [ioRegistry, showAllPins]);
// Count of programmed pins (pins with any operation)
const totalProgrammedPins = React.useMemo(
() => ioRegistry.filter(isPinProgrammed).length,
[ioRegistry],
);
const totalErrors = messages.filter((m) => m.severity === 3).length;
const totalWarnings = messages.filter((m) => m.severity === 2).length;
const totalInfos = messages.filter((m) => m.severity === 1).length;
return (
<div className="h-full flex flex-col border-b border-border">
{/* Tabs wrapper for entire component */}
<Tabs
value={activeTab}
onValueChange={(v) => setActiveTab(v as "messages" | "registry")}
className="h-full flex flex-col"
>
{/* Header with integrated tabs */}
{!hideHeader && (
<div className="bg-muted px-[var(--header-padding-x)] border-b border-border flex items-center h-[var(--ui-header-height)] overflow-hidden">
<div className="flex items-center space-x-2 flex-shrink-0">
<AlertCircle
className="text-white opacity-95 h-5 w-5"
strokeWidth={1.67}
/>
<span className="text-ui-sm font-medium text-white opacity-95">
Parser Analysis
</span>
</div>
{/* Tabs integrated in header */}
<TabsList className="bg-transparent h-auto ml-4 p-0 gap-1">
<TabsTrigger
value="messages"
className="h-[var(--ui-header-height)] px-2 text-ui-xs data-[state=active]:bg-background/80 data-[state=inactive]:text-muted-foreground rounded"
>
Messages {messages.length > 0 && `(${messages.length})`}
</TabsTrigger>
<TabsTrigger
value="registry"
className="h-[var(--ui-header-height)] px-2 text-ui-xs data-[state=active]:bg-background/80 data-[state=inactive]:text-muted-foreground rounded"
>
I/O Registry{" "}
{(showAllPins ? ioRegistry.length : totalProgrammedPins) >
0 &&
`(${showAllPins ? ioRegistry.length : totalProgrammedPins})`}
</TabsTrigger>
</TabsList>
<div className="flex items-center gap-3 ml-4 text-ui-sm">
{totalErrors > 0 && (
<span className="flex items-center gap-1">
<AlertCircle className="w-3.5 h-3.5 text-red-400" />
<span className="text-red-400">{totalErrors}</span>
</span>
)}
{totalWarnings > 0 && (
<span className="flex items-center gap-1">
<AlertTriangle className="w-3.5 h-3.5 text-yellow-400" />
<span className="text-yellow-400">{totalWarnings}</span>
</span>
)}
{totalInfos > 0 && (
<span className="flex items-center gap-1">
<Info className="w-3.5 h-3.5 text-blue-400" />
<span className="text-blue-400">{totalInfos}</span>
</span>
)}
</div>
<div className="flex-1 min-w-0" />
<Button
variant="outline"
size="sm"
onClick={onClear}
className="h-[var(--ui-button-height)] w-[var(--ui-button-height)] p-0 flex items-center justify-center ml-2 border-2 border-red-500"
title="Close"
>
<X className="h-4 w-4" />
</Button>
</div>
)}
{/* Messages Tab */}
<TabsContent
value="messages"
className="flex-1 flex flex-col overflow-hidden m-0 data-[state=inactive]:hidden"
>
<style>{HIDE_SCROLLBAR_STYLE}</style>
{messages.length === 0 ? (
<div className="text-muted-foreground p-4 text-center text-ui-xs">
No parser messages
</div>
) : (
<div
className="p-3 text-ui-xs space-y-2 overflow-auto no-scrollbar flex-1"
ref={messagesContainerRef}
data-testid="parser-messages-container"
>
{Object.entries(messagesByCategory).map(
([category, categoryMessages]) => (
<div key={category} className="space-y-1">
{/* Category Header */}
<div className="text-muted-foreground font-semibold uppercase tracking-wide text-ui-xs mb-1.5">
{getCategoryLabel(category)}
</div>
{/* Category Messages */}
{categoryMessages.map((message) => (
<div
key={message.id}
className="bg-muted/50 rounded border-l-2 transition-colors"
style={{
borderLeftColor: getSeverityColor(message.severity),
}}
>
<button
type="button"
className="parser-message-btn w-full text-left p-2 cursor-pointer hover:bg-muted/70 block"
tabIndex={message.line === undefined ? -1 : 0}
onClick={() =>
message.line !== undefined &&
onGoToLine?.(message.line)
}
onKeyDown={(e) => {
if ((e.key === "Enter" || e.key === " ") && message.line !== undefined) {
e.preventDefault();
onGoToLine?.(message.line);
}
}}
>
<div className="flex items-start gap-2">
{getSeverityIcon(message.severity)}
<div className="flex-1 min-w-0">
<div className="text-foreground font-medium mb-1">
{message.message}
</div>
<div className="text-muted-foreground text-ui-xs space-x-2">
{message.line !== undefined && (
<span>Line {message.line}</span>
)}
{message.column !== undefined &&
message.column > 0 && (
<span>• Col {message.column}</span>
)}
<span>
• {getSeverityLabel(message.severity)}
</span>
</div>
</div>
</div>
</button>
{message.suggestion && (
<div className="ml-8 mr-2 mb-2 p-2 border border-muted-foreground/30 rounded bg-muted/30 flex items-start gap-2">
<div className="flex-1 min-w-0 text-muted-foreground text-ui-xs">
<span className="font-semibold">
Suggestion:
</span>{" "}
{message.suggestion}
</div>
<Button
variant="outline"
size="sm"
onClick={() => {
onInsertSuggestion?.(
message.suggestion ?? "",
message.line,
);
}}
className="h-[var(--ui-button-height)] w-[var(--ui-button-height)] p-0 flex items-center justify-center ml-3"
title="Insert suggestion"
>
<Plus className="h-3.5 w-3.5" />
</Button>
</div>
)}
</div>
))}
</div>
),
)}
</div>
)}
</TabsContent>
{/* I/O Registry Tab */}
<TabsContent
value="registry"
className="flex-1 overflow-auto custom-scrollbar m-0 flex flex-col data-[state=inactive]:hidden"
>
{/* Toggle Button for Pin Visibility */}
<div className="sticky top-0 bg-muted/50 border-b border-muted-foreground/30 px-3 h-[var(--ui-button-height)] flex items-center justify-between z-10">
<span className="text-ui-xs text-muted-foreground">
{showAllPins
? `All pins (${ioRegistry.length})`
: `Programmed pins (${totalProgrammedPins})`}
</span>
<div className="flex items-center gap-1">
{/* Show-all toggle (text button) */}
<Button
variant="ghost"
size="sm"
onClick={() => setShowAllPins(!showAllPins)}
className="h-[var(--ui-button-height)] px-1.5 text-ui-xs text-muted-foreground hover:text-foreground"
title={showAllPins ? "Hide empty pins" : "Show all pins"}
>
{showAllPins ? "Used" : "All"}
</Button>
{/* Eye button: compact (✓/—) vs extended (line numbers) – SSOT eye-mode */}
<Button
variant="outline"
size="sm"
onClick={() => setDetailView(!detailView)}
className="h-[var(--ui-button-height)] w-[var(--ui-button-height)] p-0 flex items-center justify-center"
title={detailView ? "Compact view (✓ / —)" : "Extended view (line numbers)"}
data-testid="io-registry-detail-toggle"
>
{detailView ? (
<Eye className="h-3.5 w-3.5" />
) : (
<EyeOff className="h-3.5 w-3.5" />
)}
</Button>
</div>
</div>
<div className="flex-1 overflow-auto no-scrollbar">
<style>{HIDE_SCROLLBAR_STYLE}</style>
{filteredRegistry.length === 0 ? (
<div className="text-muted-foreground p-4 text-center text-ui-xs">
{showAllPins ? (
"No pins available"
) : (
<div className="space-y-2">
<p>No pins used in current sketch</p>
<Button
variant="link"
size="sm"
onClick={() => setShowAllPins(true)}
className="h-auto p-0 text-ui-xs text-blue-400"
>
Show all pins →
</Button>
</div>
)}
</div>
) : (
<div className="h-full overflow-auto">
<table className="w-full text-ui-xs border-collapse">
<thead>
<tr className="sticky top-0 z-40 border-b border-muted-foreground/30 bg-muted">
<th className="px-2 py-1 text-right font-semibold text-foreground">
Pin
</th>
<th className="px-2 py-1 text-center font-semibold text-foreground">
pinMode
</th>
<th className="px-2 py-1 text-center font-semibold text-foreground">
digitalRead
</th>
<th className="px-2 py-1 text-center font-semibold text-foreground">
digitalWrite
</th>
<th className="px-2 py-1 text-center font-semibold text-foreground">
analogRead
</th>
<th className="px-2 py-1 text-center font-semibold text-foreground">
analogWrite
</th>
</tr>
</thead>
<tbody>
{filteredRegistry.map((record, idx) => {
// ── Derive modes ─────────────────────────────────────
// Prefer new static-parse fields (pinModeModes/Lines);
// fall back to legacy usedAt for runtime-only pins.
const ops = record.usedAt || [];
const pmModes: string[] =
record.pinModeModes ??
ops
.filter((u) => u.operation.includes("pinMode"))
.map((u) => {
const pinModeRe = /pinMode:(\d+)/;
const m = pinModeRe.exec(u.operation);
const n = m ? Number.parseInt(m[1]) : -1;
return getPinModeLabel(n);
});
const uniqueModes = [...new Set(pmModes)];
// Conflict: TC9 (write on input), TC9b (read on output), TC11 (multi-mode)
const hasOutputMode = uniqueModes.includes("OUTPUT");
const hasInputMode =
uniqueModes.includes("INPUT") ||
uniqueModes.includes("INPUT_PULLUP");
const hasRuntimeRead = ops.some(
(u) =>
u.operation === "digitalRead" ||
u.operation === "analogRead",
);
const hasRuntimeWrite = ops.some(
(u) =>
u.operation === "digitalWrite" ||
u.operation === "analogWrite",
);
const hasConflict =
record.conflict ??
(uniqueModes.length > 1 ||
(hasOutputMode && hasRuntimeRead) ||
(hasInputMode && hasRuntimeWrite));
// ── Helper: render an op cell ────────────────────────
// newLines = from static parse (has line numbers)
// legacyOps = from runtime usedAt (line may be 0)
const renderOpCell = (
newLines: Array<number | "runtime"> | undefined,
legacyOps: typeof ops,
) => {
const hasNew = (newLines?.length ?? 0) > 0;
const hasLegacy = legacyOps.length > 0;
const isUsed = hasNew || hasLegacy;
if (!isUsed)
return (
<span className="text-gray-400">—</span>
);
// Compact mode: just a checkmark
if (!detailView)
return (
<span className="text-green-500 font-bold">
✓
</span>
);
// Extended mode: line numbers
const lines: Array<number | "runtime"> = hasNew
? newLines!
: legacyOps.map((u) =>
u.line > 0
? u.line
: ("runtime" as const),
);
return (
<div className="space-y-0.5 text-center">
{lines.map((line) => (
<div key={`line-${line}`} className="text-ui-xs">
{line === "runtime" ? (
<span className="text-yellow-400 italic">
runtime
</span>
) : (
<span className="text-blue-400">
L{line}
</span>
)}
</div>
))}
</div>
);
};
const drCell = renderOpCell(
record.digitalReadLines,
ops.filter((u) => u.operation.includes("digitalRead")),
);
const dwCell = renderOpCell(
record.digitalWriteLines,
ops.filter((u) =>
u.operation.includes("digitalWrite"),
),
);
const arCell = renderOpCell(
record.analogReadLines,
ops.filter((u) => u.operation.includes("analogRead")),
);
const awCell = renderOpCell(
record.analogWriteLines,
ops.filter((u) =>
u.operation.includes("analogWrite"),
),
);
return (
<tr
key={record.pin}
className={`border-b border-muted-foreground/10 h-7 ${idx % 2 === 0 ? "bg-background" : "bg-muted/20"}`}
>
{/* Pin Column */}
<td className="px-2 py-1 text-right font-mono font-semibold text-cyan-400">
<div className="flex items-center justify-end gap-2">
{/* RX/TX prefix for pin 0/1 */}
{getRxTxBadge(String(record.pin))}
{/* PWM tilde prefix if numeric pin and PWM-capable */}
{getPwmTilde(String(record.pin))}
<span>{record.pin}</span>
</div>
</td>
{/* pinMode Column – always shows mode name; conflict indicator if needed */}
<td
className={clsx(
"px-2 py-1 text-center",
hasConflict && "border-2 border-red-500",
)}
>
{renderPinModeCell(
record,
pmModes,
uniqueModes,
hasConflict,
detailView,
ops,
)}
</td>
{/* digitalRead Column */}
<td className="px-2 py-1 text-center">{drCell}</td>
{/* digitalWrite Column */}
<td className="px-2 py-1 text-center">{dwCell}</td>
{/* analogRead Column */}
<td className="px-2 py-1 text-center">{arCell}</td>
{/* analogWrite Column */}
<td className="px-2 py-1 text-center">{awCell}</td>
</tr>
);
})}
</tbody>
</table>
</div>
)}
</div>
</TabsContent>
</Tabs>
</div>
);
}
|