import React from "react"; import { Separator } from "@/components/ui/separator"; import { cn } from "@/lib/utils"; interface SettingGroupProps { title?: string; description?: string; children: React.ReactNode; className?: string; showSeparator?: boolean; } const SettingGroup: React.FC = ({ title, description, children, className, showSeparator = false }) => { return ( <> {showSeparator && }
{(title || description) && (
{title &&

{title}

} {description &&

{description}

}
)}
{children}
); }; export default SettingGroup;