vchikalkin 28fdcdebfe prepare for header back button: fix pages layout
add header with back button
2025-01-27 13:53:24 +03:00

15 lines
356 B
TypeScript

import { BackButton } from './back-button';
type Props = {
title: string;
};
export function PageHeader(props: Readonly<Props>) {
return (
<div className="sticky top-0 z-50 flex items-center bg-background p-2">
<BackButton />
<span className="h-8 text-lg font-bold tracking-wide">{props.title || 'Page name'}</span>
</div>
);
}