import { useState } from 'react'; import elevationImg from '../../assets/diagrams/building-geo-elevation.png'; import planImg from '../../assets/diagrams/building-geo-plan.png'; import { useWindStore } from '../../store/windStore'; export const BuildingGeometryDiagram = () => { const [activeTab, setActiveTab] = useState<'elevation' | 'plan'>('elevation'); const { inputs } = useWindStore(); const { width, length, eaveHeight, ridgeHeight, roofType } = inputs.dimensions; const imgSrc = activeTab === 'elevation' ? elevationImg : planImg; const label = activeTab === 'elevation' ? "Elevation View" : "Plan View"; return (
Building Geometry
{/* Tabs */}
{/* Left: Image */}
{label}
{label}
{/* Right: Info Panel */}
Dimensions
Width (B): {width} ft
Length (L): {length} ft
Eave Height (he): {eaveHeight} ft
Ridge Height (hr): {ridgeHeight} ft
Roof Type: {roofType}
); };