From 28a83082150ba17f19047944519eba1eac6dca0d Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Wed, 10 Jul 2024 13:14:41 +0100 Subject: [PATCH] adding missing file --- .../solar-analysis/roof-segments-table.tsx | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/app/portfolio/[slug]/building-passport/[propertyId]/solar-analysis/roof-segments-table.tsx 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, + }, +];