import { useWindStore } from '../../store/windStore'; import wallGt60 from '../../assets/diagrams/wall-gt-60.png'; import wallLt60 from '../../assets/diagrams/wall-lt-60.png'; export const WallZonesDiagram = () => { const { inputs } = useWindStore(); // "h" in ASCE usually Mean Roof Height, or Eave Height depending on context. // Diagram says "h <= 60 ft". // Let's use MEAN roof height. const meanRoofHeight = (inputs.dimensions.ridgeHeight + inputs.dimensions.eaveHeight) / 2; // Check if > 60 const isGt60 = meanRoofHeight > 60; const imgSrc = isGt60 ? wallGt60 : wallLt60; const label = isGt60 ? "Wall Zones (h > 60 ft)" : "Wall Zones (h ≤ 60 ft)"; return (