grok2api / frontend /src /shared /components /page-header.tsx
fromozuzhouzzz
Deploy grok2api v3.0.11 to HF Spaces
f1dd159
Raw
History Blame Contribute Delete
583 Bytes
import type { ReactNode } from "react";
export function PageHeader({ title, description, actions }: { title: string; description: string; actions?: ReactNode }) {
return (
<header className="flex min-h-8 shrink-0 flex-col gap-5 sm:flex-row sm:items-center sm:justify-between">
<div className="min-w-0">
<h1 className="text-xl font-medium leading-7 text-foreground">{title}</h1>
<p className="sr-only">{description}</p>
</div>
{actions ? <div className="flex shrink-0 flex-wrap items-center gap-2">{actions}</div> : null}
</header>
);
}