import { AppContent } from "./ui/app-content" import { cn } from "@/lib/utils" import { ReactNode } from "react" type BannerProps = { title: ReactNode subtitle?: string children?: ReactNode headingLevel?: "h2" | "h3" | "h4" className?: string } const Banner = ({ title, subtitle, children, headingLevel = "h2", className = "", }: BannerProps) => { const HeadingTag = headingLevel return (
{typeof title === "string" ? ( {title} ) : ( title )} {subtitle && ( {subtitle} )}
{children}
) } Banner.displayName = "Banner" export { Banner }