import { format } from "date-fns";

import { DashboardOverview } from "@/app/customer/_components/dashboard-overview";

type PageProps = {
  params: Promise<{ tenant: string }>;
};

export default async function Page({ params }: Readonly<PageProps>) {
  await params;
  const formattedDate = format(new Date(), "EEEE, do MMMM yyyy");

  return (
    <div className="flex min-w-0 flex-col gap-3">
      <DashboardOverview formattedDate={formattedDate} />
    </div>
  );
}
