mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-20 12:54:45 +08:00
26 lines
586 B
TypeScript
26 lines
586 B
TypeScript
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">
|
|
<div className="text-lg font-semibold">{title}</div>
|
|
{description && (
|
|
<div className="text-muted-foreground text-sm">{description}</div>
|
|
)}
|
|
</header>
|
|
<main className="mt-4">{children}</main>
|
|
</section>
|
|
);
|
|
}
|