diff --git a/src/app/portfolio/[slug]/building-passport/[propertyId]/solar-analysis/roof-segments-table.tsx b/src/app/portfolio/[slug]/building-passport/[propertyId]/solar-analysis/roof-segments-table.tsx new file mode 100644 index 00000000..37b22ca9 --- /dev/null +++ b/src/app/portfolio/[slug]/building-passport/[propertyId]/solar-analysis/roof-segments-table.tsx @@ -0,0 +1,46 @@ +// components/roof-segments-table.ts +import { RoofSegment } from "@/app/db/schema/solar"; +import { ColumnDef } from "@tanstack/react-table"; + +export const roofSegmentsColumns: ColumnDef[] = [ + { + accessorKey: "areaMeters2", + header: "Area (m²)", + size: 100, + }, + { + accessorKey: "groundAreaMeters2", + header: "Ground Area (m²)", + size: 100, + }, + { + accessorKey: "center.latitude", + header: "Latitude", + size: 100, + }, + { + accessorKey: "center.longitude", + header: "Longitude", + size: 100, + }, + { + accessorKey: "pitchDegrees", + header: "Pitch Degrees", + size: 100, + }, + { + accessorKey: "azimuthDegrees", + header: "Azimuth Degrees", + size: 100, + }, + { + accessorKey: "direction", + header: "Direction", + size: 50, + }, + { + accessorKey: "planeHeightAtCenterMeters", + header: "Plane Height at Center (m)", + size: 100, + }, +];