Some checks failed
Build and Push Docker Image / build (push) Failing after 10s
Full Next.js 15 platform with tRPC, Prisma, PostgreSQL, NextAuth. Includes production Dockerfile (multi-stage, port 7600), docker-compose with registry-based image pull, Gitea Actions CI workflow, nginx config for portal.monaco-opc.com, deployment scripts, and DEPLOYMENT.md guide. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
33 lines
703 B
TypeScript
33 lines
703 B
TypeScript
import { cn } from '@/lib/utils'
|
|
|
|
interface PageHeaderProps {
|
|
title: string
|
|
description?: string
|
|
children?: React.ReactNode
|
|
className?: string
|
|
}
|
|
|
|
export function PageHeader({
|
|
title,
|
|
description,
|
|
children,
|
|
className,
|
|
}: PageHeaderProps) {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
'flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between',
|
|
className
|
|
)}
|
|
>
|
|
<div>
|
|
<h1 className="text-2xl font-semibold tracking-tight">{title}</h1>
|
|
{description && (
|
|
<p className="text-muted-foreground">{description}</p>
|
|
)}
|
|
</div>
|
|
{children && <div className="flex items-center gap-2">{children}</div>}
|
|
</div>
|
|
)
|
|
}
|