"use client";

import type { ReactElement } from "react";

import { cn } from "@/lib/utils";

export function DashboardChartEmpty({
  message,
  compact = false,
}: {
  message: string;
  compact?: boolean;
}): ReactElement {
  return (
    <p
      className={cn(
        "text-center text-muted-foreground",
        compact ? "py-1 text-[11px] leading-snug" : "py-10 text-sm",
      )}
    >
      {message}
    </p>
  );
}
