"use client" /** * Shared section chrome for dashboard hubs (Simple plain sections + Mix card headers). */ import * as React from "react" import { cn } from "@/lib/utils" /** Primary line — matches across Getting started, Tasks, Insights, Learn, etc. */ export const dashboardSectionTitleClassName = "font-sans text-base font-semibold leading-snug text-foreground" export const dashboardSectionDescriptionClassName = "text-sm text-muted-foreground" export function DashboardSectionTitle({ id, as: Tag = "h2", className, children, }: { id?: string as?: "h1" | "h2" className?: string children: React.ReactNode }) { return ( {children} ) } /** Title + optional description + optional trailing actions (e.g. Select). */ export function DashboardSectionIntro({ title, titleAs = "h2", titleId, description, actions, className, }: { title: string titleAs?: "h1" | "h2" titleId?: string description?: string actions?: React.ReactNode className?: string }) { return (
{title} {description ? (

{description}

) : null}
{actions ?
{actions}
: null}
) }