2024-11-12 23:59:47 -05:00
|
|
|
type SettingsSectionTitleProps = {
|
|
|
|
title: string | React.ReactNode;
|
|
|
|
description: string | React.ReactNode;
|
2024-11-13 20:08:05 -05:00
|
|
|
size?: "2xl" | "1xl";
|
2024-11-12 23:59:47 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
export default function SettingsSectionTitle({
|
|
|
|
title,
|
|
|
|
description,
|
2024-11-13 20:08:05 -05:00
|
|
|
size,
|
2024-11-12 23:59:47 -05:00
|
|
|
}: SettingsSectionTitleProps) {
|
|
|
|
return (
|
2024-11-22 22:09:40 -05:00
|
|
|
<div
|
|
|
|
className={`space-y-0.5 select-none ${!size || size === "2xl" ? "mb-12" : ""}`}
|
|
|
|
>
|
2024-11-13 20:08:05 -05:00
|
|
|
<h2
|
|
|
|
className={`text-${
|
|
|
|
size ? size : "2xl"
|
|
|
|
} font-bold tracking-tight`}
|
|
|
|
>
|
|
|
|
{title}
|
|
|
|
</h2>
|
2024-11-12 23:59:47 -05:00
|
|
|
<p className="text-muted-foreground">{description}</p>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|