diff --git a/src/components/IntelligenceMap.jsx b/src/components/IntelligenceMap.jsx index 9b0b380..d06ae68 100644 --- a/src/components/IntelligenceMap.jsx +++ b/src/components/IntelligenceMap.jsx @@ -1,16 +1,66 @@ import React, { useState, useEffect } from 'react'; +import { useNavigate } from 'react-router-dom'; import { Icons } from './landing/constants'; import MapBg from '../assets/images/hyper_intelligence_bg_image.jpg'; // Updated with Residential & Commercial mix const hotspots = [ - { id: 1, top: '45%', left: '65%', address: 'Preston Royal Village', type: 'Commercial', problem: 'Roof Membrane Uplift', gain: '+$8.5M Value', weather: 'Hail Expected', status: 'Urgent' }, - { id: 2, top: '28%', left: '42%', address: 'Highland Park Place', type: 'Commercial', problem: 'HVAC Unit Leakage', gain: '+$22M Asset', weather: 'Clear', status: 'Monitoring' }, - { id: 3, top: '55%', left: '25%', address: '4200 Beverly Dr', type: 'Residential', problem: 'Slate Tile Damage', gain: '+$3.2M Estate', weather: 'Rain Soon', status: 'Action Required' }, - { id: 4, top: '70%', left: '48%', address: '3505 Lexington Ave', type: 'Residential', problem: 'Asphalt Shingle Loss', gain: '+$950k Home', weather: 'Windy', status: 'Low Priority' }, + { + id: 1, + top: '45%', + left: '65%', + address: 'Preston Royal Village', + type: 'Commercial', + problem: 'Roof Membrane Uplift', + gain: '+$8.5M Value', + weather: 'Hail Expected', + status: 'Urgent', + specs: { built: '1998', maintenance: '5 years since last coating' }, + management: { name: 'Sterling Properties', contact: 'Sign in for contact details' } + }, + { + id: 2, + top: '28%', + left: '42%', + address: 'Highland Park Place', + type: 'Commercial', + problem: 'Critical Membrane Failure', + gain: '$22.5 Million', + weather: 'Clear', + status: 'Monitoring', + specs: { built: '1982', maintenance: '20 years since last roof replacement permit' }, + management: { name: 'Goldman Group', contact: 'Sign in for contact details' } + }, + { + id: 3, + top: '55%', + left: '25%', + address: '4200 Beverly Dr', + type: 'Residential', + problem: 'Severe Hail Impact', + gain: '$1.1M', + weather: 'Rain Soon', + status: 'Action Required', + specs: { roofSize: '62 sq Roof', eventHistory: '8 years since last known hail event' }, + owner: { fico: '715', profile: 'Early Adopter / Long-term value' } + }, + { + id: 4, + top: '70%', + left: '48%', + address: '3505 Lexington Ave', + type: 'Residential', + problem: 'Asphalt Shingle Loss', + gain: '+$950k Home', + weather: 'Windy', + status: 'Low Priority', + specs: { roofSize: '45 sq Roof', eventHistory: 'High Wind Zone' }, + owner: { fico: '680', profile: 'First-time Buyer' } + }, ]; const IntelligenceMap = () => { + const navigate = useNavigate(); const [activeSpot, setActiveSpot] = useState(null); const [showRescheduleDialog, setShowRescheduleDialog] = useState(false); @@ -150,8 +200,8 @@ const IntelligenceMap = () => {