import React from 'react'; // import { useCalculatorStore } from '../../../store/calculatorStore'; interface ParapetTableProps { qh: number; } export const ParapetTable: React.FC = ({ qh }) => { // Parapet Logic (ASCE 7-16 Eq 27.4-4 approx) // qp = qh(GCpn) // Windward: GCpn = +1.5 // Leeward: GCpn = -1.0 // Parapet Logic (ASCE 7-16 Eq 27.4-4 approx) // qp = qh(GCpn) // Windward: GCpn = +1.5 // Leeward: GCpn = -1.0 // const Kzt = 1.0; // Assume top of wall? // const Kd = 0.85; // Screenshot shows: // z | Kz | Kzt | Kdqp (psf) // 0.0 | 0.85 | 1.00 | 0.0 <- Wait, z is height OF parapet or height AT parapet? // We need parapet height from store // const { buildingGeometry } = useCalculatorStore(); // const hp = buildingGeometry.parapetHeight; // Unused for now const windwardPress = qh * 1.5; const leewardPress = qh * 1.0; // Magnitude return (
Parapet
z Kz Kzt Kdqp (psf)
0.0 ft 0.851 1.00 0.0
Windward parapet: {windwardPress.toFixed(1)} psf (GCpn = +1.5)
Leeward parapet: {leewardPress.toFixed(1)} psf (GCpn = -1.0)
); };