Files
assetx/components/layout/SectionHeader.tsx

18 lines
439 B
TypeScript
Raw Normal View History

2026-02-03 19:56:21 +08:00
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>
);
}