大更新
This commit is contained in:
19
components/layout/PageTitle.tsx
Normal file
19
components/layout/PageTitle.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
interface PageTitleProps {
|
||||
title: string;
|
||||
subtitle?: string;
|
||||
}
|
||||
|
||||
export default function PageTitle({ title, subtitle }: PageTitleProps) {
|
||||
return (
|
||||
<div className="mb-8">
|
||||
<h1 className="text-heading-h2 font-bold text-text-primary dark:text-white">
|
||||
{title}
|
||||
</h1>
|
||||
{subtitle && (
|
||||
<p className="text-body-large text-text-secondary dark:text-gray-400 mt-2">
|
||||
{subtitle}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user