import React from 'react'; import { Eye, FileText, Calendar, Clock } from 'lucide-react'; const SHIFTS = ['Morning Shift', 'Evening Shift', 'Weekend', 'Full Time']; const STATES = ['Interested', 'Interview', 'Offer', 'Offer']; export default function MarketOffers({ profile, jobRecs = [] }) { const companies = (jobRecs || []).slice(0, 3).map(r => (r.title || 'Company').split(' ')[0]); const availability = (profile.availability || [])[0] || 'Available This Week'; const offers = (jobRecs || []).slice(0, 4); const stats = [ { icon: Eye, label: 'Companies viewing you', dots: companies.length ? companies : ['Google', 'Bon Appetit', 'Compass'] }, { icon: FileText, label: 'Applications', value: '2 Pending' }, { icon: Calendar, label: 'Interviews', value: 'Tomorrow 9AM' }, { icon: Clock, label: 'Availability', value: availability }, ]; return (

Your Market & Competing Offers

{/* Market stats */}
{stats.map((c) => { const Icon = c.icon; return (
{c.label}
{c.dots ? (
{c.dots.map((co, i) => ( {co} ))}
) : (

{c.value}

)}
); })}
{/* Competing offers */}

Companies Competing For You

{offers.length === 0 ? (

No live offers yet — keep leveling up.

) : (
{offers.map((j, i) => { const pay = j.pay_range_min || 31; const title = (j.title || 'Opportunity').split(' (')[0]; const state = STATES[i] || 'Interested'; const shift = SHIFTS[i % SHIFTS.length]; return (

{title}

{state} ${pay}/hr {shift}
{i === 1 && Tomorrow}
); })}
)}
); }