"use client" import { presentFinding, type PresentedFinding, type AuditTranslate } from "../lib/audit-presentation" export function AuditFindingData({ finding, t, locale }: { finding: PresentedFinding; t: AuditTranslate; locale: string }) { return
{presentFinding(finding, t, locale).map((group, index) =>

{group.title}

{group.note &&

{group.note}

} {/* Wide on a screen that has the width; stacked where it does not, so a heading stays beside the value it belongs to instead of scrolling away from it. */}
{group.columns.map((column, i) => )}{group.rows.map((row, i) => {row.cells.map((cell, j) => )} )}
{column}
{cell}
{group.rows.map((row, i) =>
{row.cells.map((cell, j) => cell === "" || cell === "—" ? null : (
{group.columns[j]} {cell}
))}
)}
)}
}