import React from 'react'; import type { MwfrsSurfaceResult } from '../../../utils/mwfrsLogic'; interface PressureTableProps { data: MwfrsSurfaceResult[]; title: string; description?: string; } export const PressureSummaryTable: React.FC = ({ data, title, description }) => { return (
{title}
{description &&
{description}
} {/* Not strictly a column header in screenshot, part of row */} {data.map((row, idx) => ( ))}
SurfaceDist.*Cp qhGCp w/+qiGCpi w/-qiGCpi
{row.surface} {row.dist && {row.dist}} {row.cp === 0 && row.dist === '**' ? '**' : row.cp.toFixed(2)} {row.q_GCp !== 0 ? row.q_GCp.toFixed(1) : ''} {row.total_pos !== 0 ? row.total_pos.toFixed(1) : ''} {row.total_neg !== 0 ? row.total_neg.toFixed(1) : ''}
); };