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