import type { ReactNode } from "react"; import { Button } from "@calcom/ui/components/button"; export function PanelCard({ title, subtitle, cta, headerContent, children, }: { title: string | ReactNode; subtitle?: string; cta?: { label: string; onClick: () => void }; headerContent?: ReactNode; children: ReactNode; }) { return (
{typeof title === "string" ? (

{title}

) : ( title )}
{headerContent} {cta && ( )}
{subtitle && (

{subtitle}

)} {children}
); }