"use client";

import { DailyPoint, DailyTrendChart } from "./daily-trend-chart";

type Props = {
  data: DailyPoint[];
  isLoading: boolean;
};

export function TenderTrendsChart({ data, isLoading }: Props) {
  return (
    <DailyTrendChart
      title="Tender Flow — Last 14 days"
      subtitle="New tender notices received per day"
      data={data}
      isLoading={isLoading}
      unit={{ singular: "tender", plural: "tenders" }}
      loadingLabel="Loading flow…"
    />
  );
}
