diff --git a/src/components/RightSidebar.jsx b/src/components/RightSidebar.jsx index b1d4363..f63b0b4 100644 --- a/src/components/RightSidebar.jsx +++ b/src/components/RightSidebar.jsx @@ -1,6 +1,7 @@ import React, { useState } from 'react'; import { useApp } from '../context/AppContext'; -import { MOCK_COMPANY_STATS, COMPETITOR_DATA } from '../data/mockTenders'; +import { MOCK_COMPANY_STATS } from '../data/mockTenders'; +import { firmStats } from '../services/analytics'; import { Briefcase, FileText, Calendar, History, Trophy, Eye, Kanban, Radar, ArrowRight, Users, Plus, Trash2 } from 'lucide-react'; export const RightSidebar = () => { @@ -10,6 +11,7 @@ export const RightSidebar = () => { const [tmRole, setTmRole] = useState('Uzman'); const trackedCount = tenders.filter(t => t.takipte).length; + const topFirms = firmStats(tenders).firms.slice(0, 3); const handleAddMember = (e) => { e.preventDefault(); @@ -91,20 +93,26 @@ export const RightSidebar = () => {
+ Kazanan firma verisi biriktikçe (doğrudan temin & sonuç ilanları) gerçek pazar payları burada listelenir. +
+ ) : ( + topFirms.map((comp, i) => ( +