mirror of
https://github.com/soconnor0919/hristudio.git
synced 2025-12-11 22:54:45 -05:00
34 lines
735 B
TypeScript
34 lines
735 B
TypeScript
import * as React from "react"
|
|
import { cn } from "~/lib/utils"
|
|
|
|
interface PageHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
title: string
|
|
description?: string
|
|
children?: React.ReactNode
|
|
}
|
|
|
|
export function PageHeader({
|
|
title,
|
|
description,
|
|
children,
|
|
className,
|
|
...props
|
|
}: PageHeaderProps) {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
"flex items-center justify-between gap-4 pb-6",
|
|
className,
|
|
)}
|
|
{...props}
|
|
>
|
|
<div className="grid gap-1">
|
|
<h1 className="text-2xl font-semibold tracking-tight">{title}</h1>
|
|
{description && (
|
|
<p className="text-sm text-muted-foreground">{description}</p>
|
|
)}
|
|
</div>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|