'use client'; import { useState } from 'react'; import Link from 'next/link'; import styles from './crm.module.css'; import { useToast } from '@/context/ToastContext'; export default function CRMDashboard() { const { showToast } = useToast(); const stats = [ { label: 'Total Leads', value: '247', change: '+12%', positive: true, icon: '👥' }, { label: 'Open Opportunities', value: '34', change: '+5%', positive: true, icon: '🎯' }, { label: 'Quotes Pending', value: '12', change: '-3%', positive: false, icon: '📄' }, { label: 'Revenue (MTD)', value: '₹8.4L', change: '+18%', positive: true, icon: '💰' } ]; const recentActivities = [ { type: 'lead', title: 'New lead from website', time: '5 mins ago', icon: '🆕' }, { type: 'opportunity', title: 'Deal moved to Proposal stage', time: '1 hour ago', icon: '📈' }, { type: 'quote', title: 'Quote sent to Acme Corp', time: '2 hours ago', icon: '📧' }, { type: 'won', title: 'Deal won - TechFlow Solutions', time: '3 hours ago', icon: '🎉' } ]; return (
Manage leads, opportunities, and customer relationships