import { useParams } from 'react-router-dom'
import { AppShell } from '../../design-system/layout/AppShell/AppShell'
import { Sidebar } from '../../design-system/layout/Sidebar/Sidebar'
import { TopBar } from '../../design-system/layout/TopBar/TopBar'
import { EmptyState } from '../../design-system/primitives/EmptyState/EmptyState'
import { SIDEBAR_APPS } from '../../mocks/sidebar'

export function AppDetail() {
  const { id } = useParams<{ id: string }>()

  return (
    <AppShell sidebar={<Sidebar apps={SIDEBAR_APPS} />}>
      <TopBar
        breadcrumb={[
          { label: 'Applications', href: '/apps' },
          { label: id ?? '' },
        ]}
        environment="PRODUCTION"

        user={{ name: 'hendrik' }}
      />
      <EmptyState
        title="Application Detail"
        description="Application detail view coming soon."
      />
    </AppShell>
  )
}
