fosrl.pangolin/src/components/SettingsSectionTitle.tsx

29 lines
718 B
TypeScript
Raw Normal View History

type SettingsSectionTitleProps = {
title: string | React.ReactNode;
2025-03-16 15:20:19 -04:00
description?: string | React.ReactNode;
size?: "2xl" | "1xl";
};
export default function SettingsSectionTitle({
title,
description,
2025-03-16 15:20:19 -04:00
size
}: SettingsSectionTitleProps) {
return (
<div
2025-03-01 17:45:38 -05:00
className={`space-y-0.5 ${!size || size === "2xl" ? "mb-8 md:mb-8" : ""}`}
>
<h2
className={`text-${
size ? size : "2xl"
} font-bold tracking-tight`}
>
{title}
</h2>
2025-03-16 15:20:19 -04:00
{description && (
<p className="text-muted-foreground">{description}</p>
)}
</div>
);
}