Files
deer-flow/frontend/src/components/workspace/settings/settings-section.tsx

26 lines
580 B
TypeScript
Raw Normal View History

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">
<h3 className="text-lg font-semibold">{title}</h3>
{description && (
<p className="text-muted-foreground text-sm">{description}</p>
)}
</header>
<main className="mt-4">{children}</main>
</section>
);
}