import { Metadata } from "next";
import InvoiceContent from "./content";
export const metadata: Metadata = {
  title: "invoice",
};

type props = {
  params: { [key: string]: string };
  searchParams?: { [key: string]: string | string[] | undefined };
};

export default async function Payments({ params, searchParams }: props) {
  // const { client: uuid }: any = searchParams;
  // let api = `/api/v1/invoices`;
  // if (uuid) {
  //   api = `/api/v1/payments?client_uuid=${uuid}`;
  //   revalidatePath(`/payments`);
  // }
  return (
    <div>
      <InvoiceContent />
    </div>
  );
}
