import React from "react"; import { cn } from "@/lib/utils"; interface SettingSectionProps { title?: React.ReactNode; description?: string; children: React.ReactNode; className?: string; actions?: React.ReactNode; } /** * Wrapper component for consistent section layout in settings pages * Provides standardized spacing, titles, and descriptions */ const SettingSection: React.FC = ({ title, description, children, className, actions }) => { return (
{(title || description || actions) && (
{title && (
{typeof title === "string" ?

{title}

: title}
)} {description &&

{description}

}
{actions &&
{actions}
}
)}
{children}
); }; export default SettingSection;