Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

692 B
Raw Blame
import type { ReactNode } from "react";
import { SettingsSectionHeader } from "@/components/settings/settings-section-header";
import { cn } from "@/lib/cn";

type SettingsSectionProps = {
  title?: ReactNode;
  description?: ReactNode;
  action?: ReactNode;
  children: ReactNode;
  className?: string;
};

export function SettingsSection({
  title,
  description,
  action,
  children,
  className,
}: SettingsSectionProps) {
  return (
    <section className={cn("space-y-3", className)}>
      {title ? (
        <SettingsSectionHeader
          title={title}
          description={description}
          action={action}
        />
      ) : null}
      {children}
    </section>
  );
}