import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import { createPageUrl } from '@/utils'; import { motion } from 'framer-motion'; import { Calendar, FileText, Image, TrendingUp, Clock, Zap, ArrowRight, Plus, Sparkles, BarChart3, FolderOpen, Layers } from 'lucide-react'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; import { Progress } from '@/components/ui/progress'; export default function Dashboard() { const stats = [ { label: 'Scheduled Posts', value: '24', icon: Calendar, color: 'from-blue-500 to-indigo-600', change: '+12%' }, { label: 'Repository Assets', value: '156', icon: FolderOpen, color: 'from-emerald-500 to-teal-600', change: '+8%' }, { label: 'Posts This Month', value: '18', icon: TrendingUp, color: 'from-violet-500 to-purple-600', change: '+24%' }, { label: 'Engagement Rate', value: '4.8%', icon: BarChart3, color: 'from-amber-500 to-orange-600', change: '+2.1%' }, ]; const upcomingPosts = [ { id: 1, title: 'OCR Document Automation Benefits', type: 'Carousel', date: 'Today, 2:00 PM', product: 'OCR', status: 'ready' }, { id: 2, title: 'P2P Workflow Efficiency Guide', type: 'Cover Image + Content', date: 'Tomorrow, 10:00 AM', product: 'P2P', status: 'pending' }, { id: 3, title: 'O2C Webinar Announcement', type: 'Webinar Invite', date: 'Dec 28, 3:00 PM', product: 'O2C', status: 'draft' }, ]; const productStats = [ { name: 'Document Parsing (OCR)', posts: 8, assets: 45, progress: 75 }, { name: 'Purchase To Pay (P2P)', posts: 6, assets: 52, progress: 60 }, { name: 'Order to Cash (O2C)', posts: 10, assets: 59, progress: 85 }, ]; const container = { hidden: { opacity: 0 }, show: { opacity: 1, transition: { staggerChildren: 0.1 } } }; const item = { hidden: { opacity: 0, y: 20 }, show: { opacity: 1, y: 0 } }; return (
{/* Header */}

Welcome back

Here's what's happening with your LinkedIn content

{/* Stats Grid */} {stats.map((stat, index) => (

{stat.label}

{stat.value}

{stat.change}
))}
{/* Upcoming Posts */}
Upcoming Posts
{upcomingPosts.map((post, index) => (
{post.type === 'Carousel' ? : post.type === 'Webinar Invite' ? : }

{post.title}

{post.date} {post.type}
{post.status}
))}
{/* Product Distribution */} Content by Product {productStats.map((product, index) => (
{product.name} {product.posts} posts
{product.assets} assets {product.progress}% coverage
))}
{/* Quick Actions */}

Quick Actions

{[ { label: 'Upload Assets', icon: FolderOpen, color: 'blue', href: 'Repository' }, { label: 'Schedule Campaign', icon: Calendar, color: 'violet', href: 'Scheduler' }, { label: 'Connect Canva', icon: Sparkles, color: 'pink', href: 'Integrations' }, { label: 'View Analytics', icon: BarChart3, color: 'emerald', href: 'Dashboard' }, ].map((action, index) => (
{action.label}
))}
); }