import type { ReactNode } from 'react' /** Dash0-style card: optional `.phead` title strip + `.pbody` content. */ export function Panel({ title, right, rightLink, className, children, }: { title?: ReactNode right?: ReactNode /** Render the `right` slot as a lavender action link (`.r.link`, e.g. "See all ›"). */ rightLink?: boolean className?: string children?: ReactNode }) { return (
{title !== undefined && (
{title} {right !== undefined && {right}}
)}
{children}
) }