22 lines
531 B
TypeScript
22 lines
531 B
TypeScript
interface PageHeaderProps {
|
|
title: string;
|
|
description?: string;
|
|
}
|
|
|
|
/**
|
|
* 페이지 상단 헤더 컴포넌트
|
|
* 제목, 설명, 추가 버튼 등을 표시
|
|
*/
|
|
export function PageHeader({ title, description }: PageHeaderProps) {
|
|
return (
|
|
<div className="mb-6">
|
|
<div className="flex items-center">
|
|
<div>
|
|
<h1 className="text-3xl font-bold text-gray-900">{title}</h1>
|
|
{description && <p className="text-muted-foreground">{description}</p>}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|