quality / changes (push) Successful in 8s
quality / go (push) Skipped
quality / bird2 (push) Skipped
quality / commitlint (push) Skipped
quality / docker-check (push) Skipped
quality / openapi (push) Successful in 23s
quality / web (push) Successful in 1m32s
CD / quality (push) Successful in 2m11s
CD / publish (push) Successful in 3m7s
Заголовки страниц приведены к доскам (20px). На панели добавлены таблица первых 5 модулей и лента активности по последним задачам. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
21 lines
854 B
TypeScript
21 lines
854 B
TypeScript
import type { ReactNode } from 'react'
|
|
|
|
interface PageHeaderProps {
|
|
title: string
|
|
description?: ReactNode
|
|
actions?: ReactNode
|
|
}
|
|
|
|
/** Заголовок страницы как на досках макета: название 20px, описание 14px muted, действия справа. */
|
|
export function PageHeader({ title, description, actions }: PageHeaderProps) {
|
|
return (
|
|
<header className="flex min-w-0 flex-wrap items-end justify-between gap-3">
|
|
<div className="flex min-w-0 flex-col gap-0.5">
|
|
<h1 className="text-xl font-semibold tracking-[-0.01em]">{title}</h1>
|
|
{description ? <p className="text-muted-foreground text-sm text-pretty">{description}</p> : null}
|
|
</div>
|
|
{actions ? <div className="flex shrink-0 flex-wrap items-center justify-end gap-2">{actions}</div> : null}
|
|
</header>
|
|
)
|
|
}
|