'use client'
// Stub : route globale Analyses (ouvre la liste des projets pour choisir celui à analyser)
import { AppShell } from '@/components/shell/AppShell'
import { Breadcrumbs } from '@/components/shell/Breadcrumbs'
import { PageHeader } from '@/components/shell/PageHeader'
import { EmptyState } from '@/components/ui/EmptyState'
import { Button } from '@/components/ui/Button'
import { BarChart3 } from 'lucide-react'
import Link from 'next/link'

export default function Page() {
  return (
    <AppShell topbarContent={<Breadcrumbs items={[{ label: 'Analyses' }]} />}>
      <PageHeader title="Analyses" description="Sélectionnez un projet pour afficher ses analyses" />
      <div className="flex items-center justify-center rounded-lg border border-bg-border bg-bg-elevated py-16">
        <EmptyState
          icon={<BarChart3 size={32} strokeWidth={1.5} className="text-text-muted" />}
          title="Choisir un projet"
          description="Les analyses sont accessibles directement depuis le projet correspondant."
          action={
            <Link href="/projects">
              <Button variant="primary">Ouvrir la liste des projets</Button>
            </Link>
          }
        />
      </div>
    </AppShell>
  )
}
