2026-01-20 23:43:21 +08:00
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
|
|
|
|
|
|
export function SettingsSection({
|
|
|
|
|
className,
|
|
|
|
|
title,
|
|
|
|
|
description,
|
|
|
|
|
children,
|
|
|
|
|
}: {
|
|
|
|
|
className?: string;
|
|
|
|
|
title: React.ReactNode;
|
|
|
|
|
description?: React.ReactNode;
|
|
|
|
|
children: React.ReactNode;
|
|
|
|
|
}) {
|
|
|
|
|
return (
|
|
|
|
|
<section className={cn(className)}>
|
|
|
|
|
<header className="space-y-2">
|
2026-01-31 11:08:27 +08:00
|
|
|
<div className="text-lg font-semibold">{title}</div>
|
2026-01-20 23:43:21 +08:00
|
|
|
{description && (
|
2026-01-31 11:08:27 +08:00
|
|
|
<div className="text-muted-foreground text-sm">{description}</div>
|
2026-01-20 23:43:21 +08:00
|
|
|
)}
|
|
|
|
|
</header>
|
|
|
|
|
<main className="mt-4">{children}</main>
|
|
|
|
|
</section>
|
|
|
|
|
);
|
|
|
|
|
}
|