mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 22:06:38 +08:00
25 lines
854 B
TypeScript
25 lines
854 B
TypeScript
import type { ReactNode } from 'react';
|
|
|
|
interface PageHeaderProps {
|
|
title: string;
|
|
description: string;
|
|
action?: ReactNode;
|
|
}
|
|
|
|
export function PageHeader({ title, description, action }: PageHeaderProps) {
|
|
return (
|
|
<div className='flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between'>
|
|
<div className='space-y-3'>
|
|
<p className='text-sm font-medium uppercase tracking-[0.24em] text-[var(--brand-primary)]'>ATSFlare</p>
|
|
<div className='space-y-2'>
|
|
<h1 className='text-3xl font-semibold tracking-tight text-[var(--foreground-primary)]'>{title}</h1>
|
|
<p className='max-w-3xl text-sm leading-7 text-[var(--foreground-secondary)]'>
|
|
{description}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{action ? <div className='flex flex-wrap gap-3'>{action}</div> : null}
|
|
</div>
|
|
);
|
|
}
|