---
import Avatar from '@ui/Avatar.astro'
import Badge from '@ui/Badge.astro'
import Breadcrumb from '@ui/Breadcrumb.astro'
import PageTitle from '@ui/PageTitle.astro'
// Shared header for the project pages (deployment-failed, project-settings):
// breadcrumb, project name with a status badge, actions slot and section tabs.
type Tab = 'overview' | 'deployments' | 'analytics' | 'logs' | 'settings'
interface Props {
/** project name, also the avatar placeholder letter */
name: string
/** last breadcrumb item */
section: string
/** status badge text */
badge: string
/** status badge color, e.g. "danger" */
badgeColor: string
/** highlighted tab */
active: Tab
}
const { name, section, badge, badgeColor, active } = Astro.props
const tabs: { key: Tab; label: string; href: string }[] = [
{ key: 'overview', label: 'Overview', href: './project-overview.html' },
{ key: 'deployments', label: 'Deployments', href: './deployment-failed.html' },
{ key: 'analytics', label: 'Analytics', href: './project-analytics.html' },
{ key: 'logs', label: 'Logs', href: './project-logs.html' },
{ key: 'settings', label: 'Settings', href: './project-settings.html' },
]
---