import Link from "next/link"; import DocPopup from "@/src/components/layouts/doc-popup"; import { type Status, StatusBadge } from "./status-badge"; import { cn } from "@/src/utils/tailwind"; type HeaderProps = { title: string; status?: Status; label?: { text: string; href: string; }; help?: { description: string; href?: string; className?: string }; actionButtons?: React.ReactNode; className?: string; }; export default function Header({ ...props }: HeaderProps) { return ; } export function SubHeader({ ...props }: HeaderProps) { return ; } export function SubHeaderLabel({ ...props }: HeaderProps) { return ; } function HeaderTitle({ level, title, }: { level: "h3" | "h4" | "h5"; title: string; }) { switch (level) { case "h3": return

{title}

; case "h4": return

{title}

; case "h5": return
{title}
; } } function BaseHeader({ ...props }: HeaderProps & { level: "h3" | "h4" | "h5" }) { return (
{props.help ? ( ) : null}
{props.status && } {props.label && ( )}
{props.actionButtons ?? null}
); }