227b05a61e
- add AuthPageHeader component to centralize title/description markup - replace inline header divs in LoginPage, RegisterPage, LogoutPage, ForgotPasswordPage, ResetPasswordPage, and ConfirmEmailPage with AuthPageHeader
11 lines
364 B
JavaScript
11 lines
364 B
JavaScript
export default function AuthPageHeader({ title, description }) {
|
|
return (
|
|
<div className="text-center mb-6 flex flex-col gap-1">
|
|
<h1 className="text-[22px] font-bold text-neutral-900 dark:text-white">{title}</h1>
|
|
{description && (
|
|
<p className="text-sm text-neutral-600 dark:text-neutral-400">{description}</p>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|