import Link from "next/link"; interface DashboardHeaderProps { heading: string; text?: string; link?: string; linkText?: string; children?: React.ReactNode; } export function DashboardHeader({ heading, text, link, linkText, children, }: DashboardHeaderProps) { return (
{text && {text}} {link && ( {" "} See documentation about{" "} {linkText} )}