import PaymentForm from "@/components/payments/payment-form";
import getData from "@/utils/fetch";
import { Metadata } from "next";
export const metadata: Metadata = {
  title: "create | invoice",
};

export default async function Payment({ params }: any) {
  const { Id } = params;
  const url = `/api/v1/clients/${Id}`;
  const { data: client } = await getData(url);
  return (
    <>
      <div className="overflow-hidden">
        <PaymentForm client={client} />
      </div>
    </>
  );
}
