Admin: przeglad usera 1:1 z profilem apki (pasek 3 kafelkow bez Ostatniej wagi, podsumowanie Postepow z liczba cwiczen, dane osobowe jako kafelki z ikonami/tonowane miesnie/kafelki social, parametry ciala jako zakladki z pelna historia i postepem, usuniecie opisu Epley; dalej tylko do odczytu)
This commit is contained in:
@@ -8,16 +8,20 @@ import { cn } from '../../lib/utils';
|
||||
/* Page header: title + optional badge, actions on the right (stacks on mobile) */
|
||||
export function PageHeader({
|
||||
title,
|
||||
leading,
|
||||
badge,
|
||||
actions,
|
||||
}: {
|
||||
title: string;
|
||||
/** Element przed tytułem (np. awatar). */
|
||||
leading?: ReactNode;
|
||||
badge?: ReactNode;
|
||||
actions?: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 mb-5">
|
||||
<div className="flex items-center gap-3 flex-wrap">
|
||||
{leading}
|
||||
{/* `<h1>` należy do topbaru (tytuł strony) — nagłówek treści to `<h2>` */}
|
||||
<H2 className="mb-0">{title}</H2>
|
||||
{badge}
|
||||
|
||||
Reference in New Issue
Block a user