15 lines
379 B
TypeScript
15 lines
379 B
TypeScript
'use client';
|
|
import { BackButton } from './back-button';
|
|
import { PageTitle } from './page-title';
|
|
|
|
type Props = { title: string | undefined };
|
|
|
|
export function PageHeader(props: Readonly<Props>) {
|
|
return (
|
|
<div className="sticky top-0 z-50 flex items-center rounded-b-lg bg-transparent p-2">
|
|
<BackButton />
|
|
<PageTitle title={props.title} />
|
|
</div>
|
|
);
|
|
}
|