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.

642 B
Raw Blame
import type { ReactNode } from "react";

type SectionHeaderProps = {
  title: string;
  detail?: ReactNode;
  action?: ReactNode;
};

export function SectionHeader({ title, detail, action }: SectionHeaderProps) {
  return (
    <div className="flex items-center justify-between gap-3 border-border border-b pb-2.5">
      <div className="flex min-w-0 items-baseline gap-2">
        <h2 className="font-semibold text-[15px] text-foreground">{title}</h2>
        {detail && (
          <span className="truncate text-[13px] text-muted-foreground">
            {detail}
          </span>
        )}
      </div>
      {action}
    </div>
  );
}