大改变
This commit is contained in:
17
components/layout/SectionHeader.tsx
Normal file
17
components/layout/SectionHeader.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { ReactNode } from "react";
|
||||
|
||||
interface SectionHeaderProps {
|
||||
title: string;
|
||||
children?: ReactNode;
|
||||
}
|
||||
|
||||
export default function SectionHeader({ title, children }: SectionHeaderProps) {
|
||||
return (
|
||||
<div className="flex flex-row items-center justify-between">
|
||||
<h2 className="text-text-primary dark:text-white text-heading-h3 font-bold">
|
||||
{title}
|
||||
</h2>
|
||||
{children && <div>{children}</div>}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user