import { Metadata } from "next";
import PaymentContent from "./content";
export const metadata: Metadata = {
  title: "payment",
};

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 = ``;
  if (uuid) {
    api = `/api/v1/payments?client_uuid=${uuid}`; // not worked yet
  }
  return (
    <div>
      <PaymentContent clientId={uuid} />
    </div>
  );
}
